Print Page | Close Window

DrawHTMLTextBOX

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1216
Printed Date: 31 Jan 26 at 6:43AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DrawHTMLTextBOX
Posted By: ArturAs
Subject: DrawHTMLTextBOX
Date 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)



Replies:
Posted By: Ingo
Date 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



Posted By: ArturAs
Date 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


Posted By: Ingo
Date 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


Posted By: ArturAs
Date 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


Posted By: Ingo
Date Posted: 16 Sep 09 at 9:23AM
perhaps a small <br> makes a difference?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk