Print Page | Close Window

Issue with PDF generation through PowerBuilder

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=3412
Printed Date: 29 Apr 25 at 9:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Issue with PDF generation through PowerBuilder
Posted By: Ramendra
Subject: Issue with PDF generation through PowerBuilder
Date Posted: 02 Dec 16 at 2:40AM

Hi Team

As per the guidelines, I installed QuickPDF Library 13.11 and can see all the functions mentioned for PowerBuilder at below location :

C:\Program Files (x86)\Debenu\PDF Library\DLL\Import\PowerBuilder\DebenuPDFLibraryDLL1311Unicode.inc

I added them to my Local External Function and added below code

int InstanceID
InstanceID = DPLCreateLibrary()
 
IF DPLUnlockKey(InstanceID,"my_unlock_key") = 1 THEN
 DPLDrawText(InstanceID, 100, 500, "Hello world")
 DPLSaveToFile(InstanceID, "C:\Docs\HelloFromDLL.pdf")
END IF

DPLReleaseLibrary(InstanceID);


But when I am running this code, I am getting the error "Error opening DLL Library "DebenuPDFLibraryDLL1311.dll"

To me it looks like a DLL registration issues.

Can someone please confirm how to get it running.

Thanks
Ramendra




Replies:
Posted By: Ramendra
Date Posted: 02 Dec 16 at 4:59AM
Hi All,
 
I figure out the problem which was causing the error "Error opening DLL Library "DebenuPDFLibraryDLL1311.dll"
 
I placed the DLL "DebenuPDFLibraryDLL1311.dll" in the same folder with my Code and I am able to get the "InstanceID" from DPLCreateLibrary()
 
But, I am still getting ZERO from function DPLUnlockKey(InstanceID,"my_unlock_key")
 
I tried couple of license keys but the same return value.
 
Any help is highly appreciated!
 
Thanks
Ramendra


Posted By: jpbro
Date Posted: 02 Dec 16 at 6:54PM
Have you purchased a license? If so, you shouldn't be posting your license key publicly!

If not, you shouldn't be using someone else's license key.


Posted By: Ramendra
Date Posted: 04 Dec 16 at 11:51PM

I am using Trial license..

Can you please help me with the problem I am facing..
 


Posted By: Wheeley
Date Posted: 05 Dec 16 at 9:06AM
Which version of Powerbuiilder are you using?Also, how have you declared your local external function? You may be running it an Ansi/Unicode string issue.



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