I am using linq.
In my template “docx_in.docx” there is tag:
<<[Dummy]>>
java code:
InputStream inputStream = new FileInputStream(new File("/home/aspose/img/docx_in.docx"));
Document document = new Document(inputStream);
ReportingEngine engine = new ReportingEngine();
engine.buildReport(document, values, keys);
document.save("/home/aspose/img/docx_out.docx");
if I do not give parameter “Dummy” into keys I take error :
java.lang.IllegalStateException: An error has been encountered at the end of expression ‘Dummy]>’. Can not get the value of member ‘Dummy’ on type ‘class com.aspose.words.net.System.Data.DataRowCollection’.
Is there way to take in document empty string instead <<[Dummy]>>?
Or to take list of all tags to process them manually?
Like document.getMailMerge().getFieldNames()?
Thanks!