Formatted TextArea HTML tags

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF ReportWriter for .NET (v4)  /  Formatted TextArea HTML tags

DynamicPDF ReportWriter for .NET (v4) Forum

 Apr 15 2011 11:25 AM
Hello,

Which HTML tags Formatted TextArea supports now?

For example if I enter this text in the designer, no bullets appear in the pdf

<ul>
  <li>Item1</li>
  <li>Item2</li>
</ul>

Thanks
Denys
 Apr 15 2011 12:05 PM
Posted by a ceTe Software moderator
Hello,

Currently the DynamicPDF product API does not support HTML lists(<li>). Please refer the documentation on supported HTML tags by our DynamicPDF product API at: http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Formatted%20Text%20Area%20Formatting.html.

Our developers are working on a page element which will have support for most of the HTML tags and this page element is still in development stage. We may add this feature in our future version of DynamicPDF product API and currently we do not have exact time line on this.

Thanks,
ceTe Software Support Team.
 Apr 15 2011 12:42 PM
thanks, 

another question:

How would you show a colored bullet before the text ?
 Apr 15 2011 4:48 PM
Posted by a ceTe Software moderator
Hello,

Below is the sample code to show a colored bullet before the text.
 
            FormattedTextAreaStyle style = new FormattedTextAreaStyle(ceTe.DynamicPDF.FontFamily.Helvetica, 14, true);
            string text = "<p><font color='FF0000'>\u2022 <font color='#000000'>This text is </p>";
            FormattedTextArea area = new FormattedTextArea(text, 10, 10, 200, 100, style);
            Document document = new Document();
            Page page = new Page();
            page.Elements.Add(area);
            document.Pages.Add(page);
            document.Draw(@"Test.pdf");
            System.Diagnostics.Process.Start(@"Test.pdf");

Thanks,
ceTe Software Support Team.
 Apr 18 2011 11:26 AM
thanks, it helped.
also I wanted to add diamond symbol "\u2666" and it did not work..
Any suggestions?
 Apr 18 2011 12:38 PM
Posted by a ceTe Software moderator
Hello,

You will need to use a font which has support for the symbols which you are adding to the PDF document. Please try using the correct font which has support for diamond symbol and this should work for you. Below is the sample code for it.

        OpenTypeFont font = new OpenTypeFont(@"ARIALUNI.TTF");
            FontFamily fontfamily = new FontFamily("font", font);
            FormattedTextAreaStyle style = new FormattedTextAreaStyle(fontfamily, 14, true);
            //diamond symbol.............................
            string text = "<p><font color='FF0000'>\u2666 <font color='#000000'>This text is </p>";
            FormattedTextArea area = new FormattedTextArea(text, 10, 10, 200, 100, style);
            Document document = new Document();
            Page page = new Page();
            page.Elements.Add(area);
            document.Pages.Add(page);
            document.Draw(@"C:\Temp\Test.pdf");
            System.Diagnostics.Process.Start(@"C:\Temp\Test.pdf");

Thanks,
ceTe Software Support Team.
 Jul 26 2011 8:20 AM
Still no estimate on when or IF the feature to include ordered/unordered lists will be available?

I see that forum-posts all the way back from 2006 states that you have this on your wishlist for features and that you are working on it?
 Jul 26 2011 9:20 AM
Posted by a ceTe Software moderator
Hello,

Yes, this feature is already added to our wish list and we may add it to our future version of DynamicPDF product but we do not have any time line of this. We will notify you once we add support for these <li> and <ul> and other HTML tags.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 6:30 AM.