I'm trying to find a solution for a problem we've encountered within our implementation of Aspose.Words (Version: 18.104.22.168).
The situation is as follows:
A user can create a Word Document which will be used as a template for a report within our application. Within the Template, the user can insert variables which should be replaced with content collected from the application, which matches the variable declaration. Upon generating a report, based on the previously mentioned template, the application will collect all user generated content from the application and inserts it at the designated position within the document. The content which needs to be inserted into the report, can contain HTML Code. In order to insert this particular type of content, we use the "DocumentBuilder.InsertHtml(strHTMLStringToInsert)" method.
The problem we're facing is that, once the HTML has been inserted into the DocumentBuilder, the paragraph format of the inserted content won't match the paragraph format defined within the Template document.
What would you suggest as an alternative means for solving this problem?