Good day.
I may be misunderstanding a portion of this document explaining how styles are handled when inserting HTML with Aspose. If that is the case I apologize.
Here is what we are doing. We have an existing document. In this document is defined a custom style called MyStyle. It applies to both paragraphs and characters. I have attached the document with the custom style to this post.
We load the document into aspose and use the following code to insert HTML into the document:
<cfset docBuilder.init(doc)>When we open the output document, the inserted text does not have the style applied; it is still the “Normal” style. I have also tried applying the class to a
<cfset docBuilder.moveToBookmark(“bookmark”)>
<cfset docBuilder.insertHtml(‘Hello there. This should be mystyle’)>
<cfset doc.save(outFile)>
aragraph without success. I’ve also tried applying other non-custom styles without success.
In short, we would like to insert HTML and take advantage of styles already embedded in the document. Can you tell me if we can accomplish that? We are using Aspose.Words 11.9.0
Thank you.