Hi,
I’m trying to insert an html content into a table cell in my document.
It throws NullReferenceException
When the html contains “P” or “DIV” tags.
System.NullReferenceException : Object reference not set to an instance of an object.
at Aspose.Words.DocumentBuilder.InsertParagraph()
at . ()
at . ()
at . (Boolean )
at . (Boolean )
at . ( , Boolean )
at . ( , Boolean )
at . (String , DocumentBuilder , )
at . ()
at Aspose.Words.DocumentBuilder. (String , )
at Aspose.Words.DocumentBuilder.InsertHtml(String html, Boolean useBuilderFormatting)
I have attached a sample project for your reference.
TableSample.zip (109.3 KB)
Please make sure to uncomment the line number 100 in order observe the error.
Do not hesitate to contact me should you require further clarifications.
Appreciate your prompt response in this regard.
Cheers