Thanks for your reply Adeel. I have read the information about Inline HTML and it does allow multiple text formatting on one line. So we're making progress.
Using this Inline HTML technique, I am now trying to add a very simple table to the HTML but without much success. When I convert to PDF, my table is appearing at the top of the PDF document, instead of after the other lines of text.
Also the table doesn't seem to recognise the "align" attribute correctly. I cannot get the text in my table to align in the center.
Here is my HTML string.
<font face=\"TimesNewRoman\" size=12>
Here is some text.
<b>This text is in bold.</b>
<b><u>This text is bold underline</u></b>
<table border=0 width=\"100%\"><tr><td align=\"center\">This is a table cell below other text, aligned center</td></tr></table>
</font>
And, here is my code to convert it to PDF.
Dim
pdf1 As New Pdf
Dim sec1 As Section = pdf1.Sections.Add()
Dim t1 As Text = New Text(MyHTMLString)
t1.IsHtmlTagSupported =
True
sec1.Paragraphs.Add(t1)
pdf1.Save(
"C:/test.pdf")
Do I need to change my HTML or VB.Net code to make the table appear in the correct position on the page? And to use the align attribute correctly?
Thanks.