Print Page | Close Window

DrawTextBox

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=995
Printed Date: 04 Jul 25 at 9:47AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DrawTextBox
Posted By: skwirelboy
Subject: DrawTextBox
Date Posted: 16 Dec 08 at 7:03AM
Hi,
 
I cannot get any of the functions involving textboxes to work (including the fittextBox and rotatetextbox. The following is a very basic sample of code:
 
  QP := TiSEDQuickPDF.Create;
  try
    QP.UnlockKey('MyUnlockKey');
    QP.SelectPage(1);
    QP.SetOrigin(1);
    QP.AddStandardFont(4);
    qp.DrawTextBox(100, 100, 100, 100, 'Hello', 0);
 
This produces nothing.
 
If I change the last line to
    qp.DrawText(100, 100, 'Hello');
 
I get my text.
 
I have searched the forum. I cannot see anyone reporting this problem. Everyone else seems to be able to use these functions ok.
 
Any ideas?
 
Many thanks
 
Mark
 



Replies:
Posted By: DELBEKE
Date Posted: 17 Dec 08 at 1:14PM
I have run your sample and got the right result.
Perhaps something else in your code is wrong ?
 
Try to control the return values form your functions


Posted By: skwirelboy
Date Posted: 18 Dec 08 at 5:30AM

Basically, that is the code!

I have got around it (in a way which is actually more convenient for what I need to do). I first draw the box (DrawBox etc) and then call the function to draw the textbox. The latter function only outputs the text in any event.

All very puzzling, but it seems to work just fine!

 

Thanks for the reply




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