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 > Sample Code
  New Posts New Posts RSS Feed - Using the ActiveX version with ASP
  FAQ FAQ  Forum Search   Register Register  Login Login

Using the ActiveX version with ASP

 Post Reply Post Reply
Author
Message
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Topic: Using the ActiveX version with ASP
    Posted: 09 Sep 09 at 1:44AM
Download the latest version of Quick PDF Library from our website.

You must place this file in a directory where IIS has been setup with execute permission. For example Windows\System32 and IIS must be setup to execute ActiveX controls. If you have any difficulty with this, feel free to contact us for help. 

You need to register the ActiveX library with Windows, using the following command:

regsvr32 <path>\QuickPDFAX0715.dll

A message should appear indicating that the library has been successfully registered.

Type your first ASP script using Quick PDF Library:

<%
Dim QP
Set QP = Server.CreateObject("QuickPDFAX0715.PDFLibrary")
Call QP.UnlockKey("type your license key here")
Call QP.DrawText(100, 500, "Hello World!")
Call QP.SaveToFile(Server.MapPath("test.pdf"))
Set QP = Nothing
%>

Let's look at each part of the program. The first two commands create the Quick PDF Library object:

Dim QP
Set QP = Server.CreateObject("QuickPDFAX0715.PDFLibrary")

The next part unlocks the library. You must supply your license key to the UnlockKey function. If you have not purchased Quick PDF Library yet, the installer will contain a 30 day evaluation license key.

Call QP.UnlockKey("type your license key here")

Now the library is ready to use. We'll draw some text onto the page, and then save the PDF document to a file on disk:

Call QP.DrawText(100, 500, "Hello World!")
Call QP.SaveToFile(Server.MapPath("test.pdf"))

Finally, we should release the object to free the memory that it used:

Set QP = Nothing
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