How to parse html tags within the table cell.
E.g <b>FLEET TRACKER</b> should be FLEET TRACKER(Bold)
parse html tags
Re: parse html tags
Support · Jan 13, 2010Hello,
You will have to use the HtmlTextArea page element to add the HTML text and then you will have to add the HtmlTextArea to the cell of the Table. It is not possible to directly add the HTML text to the cell of the Table. Below is the sample code for it.
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
Table table = new Table(0, 0, 600, 600);
table.Columns.Add(90);
HtmlTextArea area = new HtmlTextArea("<b>FLEET TRACKER</b>", 0, 0, 90, 30, FontFamily.Helvetica, 12,false);
Row row2 = table.Rows.Add(30);
Cell cell1 = row2.Cells.Add(area);
cell1.Align = TextAlign.Center;
cell1.VAlign = VAlign.Center;
page.Elements.Add(table);
document.Draw(@"D:\MyDocument.pdf");
Thanks,
ceTe Software Support Team
Re: parse html tags
Forum member · Jan 13, 2010Thanks for the response. I'll try and let you know if it worked.
Re: parse html tags
Forum member · Jan 15, 2010HtmlTextArea dint't work for me rather i used this line.
Dim Questiontext As ceTe.DynamicPDF.PageElements.FormattedTextArea = New FormattedTextArea(CStr(tmpRTA("QuestionText")), 0, 0, 90, 30, FontFamily.Helvetica, 12, False)