Using HTML in word aspose LINQ

Hi,
i am using LINQ report engine, to generate reports. I am passing a JSON to the report engine. Is there any tag in ms word, to which I can pass a html code (as a string) to render inside the document?
Thanks.

@ter.dt Yes, you can use the following syntax in your template:

<<[test] -html>>

You can use the following JSON and Code for testing:

{
	"test": "<b>Bold</b> and <i>italic</i> text"
}
JsonDataSource dataSource = new JsonDataSource("C:\\Temp\\test.json");
Document doc = new Document(@"C:\Temp\in.docx");
ReportingEngine engine = new ReportingEngine();
engine.BuildReport(doc, dataSource, "db");
doc.Save(@"C:\Temp\out.docx");
1 Like