Hello,
In Aspose Total for Java, Is it possible to define a docx template with tags, for example, {name}
and {address}
, and Aspose may generate a docx replacing those tags with values?
Please see the attached image.
Hello,
In Aspose Total for Java, Is it possible to define a docx template with tags, for example, {name}
and {address}
, and Aspose may generate a docx replacing those tags with values?
Please see the attached image.
@bergpatricio Of course you can generate documents from template using Aspose.Words. You can use different approaches to fill template with data, for example Mail Merge or LINQ Reporting Engine .
With Mail Merge approach you can use either standard MS Word merge fields or mustache syntax, like on your screenshot.
With LINQ Reporting Engine approach tags like this are used <<[field_name>>
. Please see our documentation for more information:
https://docs.aspose.com/words/java/template-syntax/
Also, with LINQ Reporting Engine you can directly use JSON as a data source.