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 |
Post Reply
|
| Author | |
ArturAs
Beginner
Joined: 31 Jul 09 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: DrawHTMLTextBOXPosted: 14 Sep 09 at 2:39PM |
|
The documentation says:
"The remaining HTML text is returned, which can be passed to this function again". I always get a result like <stack><!--0000000100F85A100010.000##000000 N00000000L--></stack>def Is this a bug or don't i understand? Artur (Vs. 7.15, Delphi 2009) |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 Sep 09 at 3:10PM |
|
Hi!
It's always good to see your code regarding this issue. Perhaps then we can determine the problem. Cheers, Ingo |
|
![]() |
|
ArturAs
Beginner
Joined: 31 Jul 09 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 Sep 09 at 5:44PM |
|
Ingo,
you are right of course. The code is quite simple. var breite : Double; restStr : String; hoehe : Double; begin breite := seitenbreite - 2 * links / 10; reststr := 'abc<BR>def'; hoehe := QP.GetHTMLTextHeight( breite, restStr ); restStr := QP.DrawHTMLTextBOX( tab_TOP, ze, breite, hoehe, restStr ) … end; restStr results in <stack><!--0000000100F85A100010.000##000000 N00000000L--></stack>def regardless of the values for breite, hoehe and resStr Artur |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Sep 09 at 6:09AM |
|
Hi Artur!
Now you has seen in appendix A (my link in the other post) that the tab-sign isn't actually supported. So i think your first part of the html-text wasn't interpreted in a correct way and so this strange error appears. Cheers, Ingo |
|
![]() |
|
ArturAs
Beginner
Joined: 31 Jul 09 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Sep 09 at 8:37AM |
|
Hi Ingo,
this has nothing to do with tabs. tab_TOP is a double constant. The string is 'abc<BR>def'. <stack><!--0000000100F85A100010.000##000000 N00000000L--></stack>def is my "default" result of the function, as i mentioned: regardless of the params. (the numerics slightly differ each time) Is there something wrong with the string?? Do i need <html>-tags or perhaps other tags??? Helpless: Artur |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 Sep 09 at 9:23AM |
|
perhaps a small <br> makes a difference?
|
|
![]() |
|
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