Parse word template to identify the business objects required for JSON data source

@NaraSg You can try using HTML to specify formatting of the inserted value that differs from the formatting of the tag. But I would prefer to keep value formatting the same as formatting of the tags. This make easier to analyze the output.

Hello Support Team,
My test data can include multiple sections or types of information. Depending on the report type (concise or detailed), not all of this information may be needed. I understand that we connect to the data source, and during rendering, the relevant data is filled in accordingly. So, the data source should contain all the possible information.

Is there a parsing phase where I can determine which parts of the data to include in the data source based on the report type?

Regards,

@NaraSg Unfortunately, Aspose.Words does not have additional parts for this. You need to parse the data before using the Reporting Engine.

Thank you. Similar to the mustache syntax {{ }}, is there any way for me to add my own custom syntax, that I parse & then remove all those (custom syntax) in the final report (looking for a function similar to ReportBuildOptions.RemoveEmptyParagraphs to remove those custom syntax)?

Regards,
NaraSg

@NaraSg To remove the custom syntax, you need IReplacingCallback Interface | Aspose.Words for .NET to find it, for example with Regex regex = new Regex(@"<<([^>]+)>>");.

Thank you very much.

Regards,

1 Like

The issues you have found earlier (filed as WORDSNET-28338) have been fixed in this Aspose.Words for .NET 25.8 update also available on NuGet.