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

Free Support Forum - aspose.com

Issues with HTML formatting tags

Hello Team,

Please take a look at the attached document for above mentioned subject.

Best Regards,


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You should use InsertHtml method in this case. Please see the following code:

//Create document and documentbuilder

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

Aspose.Words.Font font;

Paragraph paragraph;

Run run;

//Create new text object of aspose

// reportDocument is the Aspose document object.

run = new Run(doc);

font = run.Font;

paragraph = new Paragraph(doc);

//Add text object to paragraph


//Create New Shape as text box

Shape textBox = new Shape(doc, ShapeType.TextBox);

textBox.Width = 100;

textBox.Height = 100;

//Assign paragraph to shape


//Insert texybox into the document


//Insert HTML formated text


builder.InsertHtml(" Test Text ");

//Save output document


Also, see the following link to learn more about InsertHtml method.


Hope this helps.

Best regards.