We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Using HTML in word aspose LINQ

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?

@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");
1 Like