Free Support Forum - aspose.com

Document Stops outputting content after text box and html insertion

I’m using the following code to insert html into a textbox :

    	    			String defaultText = HTMLTEXT;
    	    			Paragraph paragraph = new Paragraph(doc);

    	    			Run run = new Run(doc);

    	    			paragraph.appendChild(run);

    	    			textbox.appendChild(paragraph);

    	    			builder.moveTo(textbox.getLastParagraph().getLastChild());

    	    			builder.insertHtml(defaultText);
    	    			builder.moveToDocumentEnd(); 

This works but NOTHING is rendered after the textbox is written to the document. The code does not throw any errors, just nothing else is output to the rendered document.

@paul.calhoun,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word and HTML document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.