Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 1038

insert text with html to a table cell PDF .net

$
0
0
Hi,
i am building a PDF document. i need to add text 
Dim s1 As String = "<b>STAFF STATUS: </b>"
to a table cell. since it has html in it, i believe i have to do something different. 
here is part the code.

        Dim doc As Document = New Document()
        doc.Pages.Add()
Dim secEmail As Aspose.Pdf.Generator.Section = pdf.Sections.Add()
Dim ProviderTable As Aspose.Pdf.Table = New Aspose.Pdf.Table()
 ProviderTable.ColumnWidths = "200 300"
Dim Provrow1 As Row = ProviderTable.Rows.Add()
        Dim Provrow1col As Cell = Provrow1.Cells.Add(CommitteeDate)
......................................................................................................................
Dim s1 As String = "<b>STAFF STATUS: </b>"
        Dim text1 As Aspose.Pdf.Generator.Text = New Aspose.Pdf.Generator.Text(s1)
        text1.IsHtmlTagSupported = True
        text1.TextInfo.IsUnicode = True

        Dim Provrow20 As Row = ProviderTable.Rows.Add()
        Dim Provrow20col1 As Cell = Provrow20.Cells.Add()
        text1.ID = s1  '' not sure this is right ''
        Provrow20col1.Paragraphs.Add(s1) '' it does not like this ''

i need to add the text with html to that cell. 

thanks in advance.
Ying





Viewing all articles
Browse latest Browse all 1038

Trending Articles