Print Page | Close Window

Getting Started with QuickPDF Lite

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=1612
Printed Date: 06 May 25 at 12:08PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Getting Started with QuickPDF Lite
Posted By: StopGap
Subject: Getting Started with QuickPDF Lite
Date Posted: 20 Oct 10 at 10:33PM

I'm having trouble getting starting in Delphi  - maybe I'm missing something?

Does anyone have any sample code of how to load and run the QuickPDF Lite in Delphi?


Any help appreciated.

StopGap




Replies:
Posted By: Rowan
Date Posted: 21 Oct 10 at 10:47AM
Hi StopGap,

Sure, here's some sample code on how to use Quick PDF Library Lite with Delphi.

Note: the Lite version of Quick PDF Library comes as an ActiveX component. You need to register the ActiveX library with Windows, using the following command: 

regsvr32 \QuickPDFLite0721.dll

Next, here's a simple usage example:

------------------------------
uses
 ComObj;
procedure TForm1.Button1Click(Sender: TObject);
var
 QP: Variant;
begin
 QP := CreateOleObject('QuickPDFLite0721.PDFLibrary');
 QP.DrawText(100, 500, 'Hello World!');
 QP.SaveToFile('c:\test.pdf');
 QP := Unassigned;
end;
------------------------------

I hope this helps.

- Rowan.



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