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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DrawHTMLTextBOX
  FAQ FAQ  Forum Search   Register Register  Login Login

DrawHTMLTextBOX

 Post Reply Post Reply
Author
Message
ArturAs View Drop Down
Beginner
Beginner


Joined: 31 Jul 09
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArturAs Quote  Post ReplyReply Direct Link To This Post Topic: DrawHTMLTextBOX
    Posted: 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)
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ArturAs View Drop Down
Beginner
Beginner


Joined: 31 Jul 09
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArturAs Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ArturAs View Drop Down
Beginner
Beginner


Joined: 31 Jul 09
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ArturAs Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 16 Sep 09 at 9:23AM
perhaps a small <br> makes a difference?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store