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

Free Support Forum - aspose.com

Insert HTML Formatted string

I have some string constants in my application that are HTML formatted for use in the UI. I would like to re-use these for use in my reports. When I attempt to insert them, I get the HTML tags instead of the formatted string. How do I convert them to a formatted text string during insert?


example:

“A definition for something.” _
& “
” _
& “
High(H): Def text here.” _
& “
Medium(M): More def text here.” _
& "
Low(L): Last def text here."

What I get in the report is this:

A definition for something.

High(H): Def text here.
Medium(M): More def test here.
Low(L): Last def text here.

I think you have a InsertHTML for that. It should interpret your HTML tags correctly.

Hi David,


Thanks for your inquiry. As suggested by Guillaume, please use DocumentBuilder.InsertHtml method. Please let me know if I can be of any further assistance.

Best Regards,