Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
DrawHTMLTextBox not rendering ol/ul/li |
Post Reply
|
| Author | |
equick
Beginner
Joined: 18 Aug 13 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: DrawHTMLTextBox not rendering ol/ul/liPosted: 18 Aug 13 at 3:53AM |
|
ol/ul/li code are not rendering with DrawHTMLTextBox. The other supported HTML tags (e.g., b, i, em, sup, sub, etc) in Appendix A are working. Here's the snippet of code that I'm trying to work with:
Am I missing something? Any help would be appreciated. Thank you in advance! Edited by equick - 18 Aug 13 at 3:53AM |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(1)
Quote Reply
Posted: 19 Aug 13 at 1:15AM |
|
equick,
The following code is working correctly for me in QPL 8.16, 9.12 and 9.15. QP.SetOrigin(1); // Added string strHTML = "<ul><li>item 1</li><li>item 2</li><li>item 3</li></ul>"; QP.SetTextAlign(0); QP.SetHTMLNormalFont("Default", 4); QP.SetHTMLBoldFont("Default", 5); QP.SetHTMLItalicFont("Default", 6); QP.SetHTMLBoldItalicFont("Default", 7); QP.DrawHTMLTextBox(20, 20, 200, 200, strHTML); QP.SaveToFile("out.pdf"); Andrew. |
|
![]() |
|
equick
Beginner
Joined: 18 Aug 13 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Aug 13 at 4:17AM |
|
Thank you for the response Andrew. Is there a known old bug for the <ol> or the <ul> tags? Could the bug be specific to VBScript ASP? I tried using your code but the <ol> and <ul> tags still do not render properly. It looks like the <li> tags are rendering but I don't get the numbers or bullet points for <ol> and <ul>, respectively. I'm using QPL 5.11. I currently can't upgrade as I'm managing an existing system. Sample output (notice the lack of numbers for <ol> or bullet points for <ul>):
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(1)
Quote Reply
Posted: 19 Aug 13 at 5:21AM |
|
equick, The library has evolved a lot over the last few years and it would be too difficult to track down a bug that is this old.
Andrew. |
|
![]() |
|
equick
Beginner
Joined: 18 Aug 13 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Aug 13 at 5:24AM |
|
OK, but you don't see anything majorly wrong with how I'm doing this right? Is there an alternate way of rendering the HTML that I might be overlooking, which may render the <ol> and <ul> properly? If I'm not using it wrong, then I'll agree with you and assume it is because we are running a very old version of the QPL.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(1)
Quote Reply
Posted: 20 Aug 13 at 7:32AM |
|
equick, Andrew.
|
|
![]() |
|
equick
Beginner
Joined: 18 Aug 13 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 Aug 13 at 3:26PM |
|
OK, thank you for your help Andrew.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store