Rendering HTML tags in TextFrame

Hi,

Here the sample code follows:-

Aspose.Slides.Rectangle rect1 = slide1.Shapes.AddRectangle(345, 1100, 2000, 200);

rect1.LineFormat.ShowLines = false;

string productsubtitle = dsTechList.Tables[0].Rows[0]["SubTitle"].ToString();

TextFrame tf1 = rect1.AddTextFrame(productsubtitle);

from the above line of code i am getting data from the DB, in data contains HTML tags and assigned to productsubtitle, in productsubtile some part of string is in bold and italic but it was not showing in bold and italic. Is Aspose.Slides doesn't support html tags? Is it possible for TextFrame object for rendering the html content?.

Regards

Raghu Veer Gupta

Dear Raghu,

Aspose.Slides does not support html tags, so you need to parse the html and format the text accordingly. e.g when you encounter you will add a new portion and set its fontbold property to true.