Print Page | Close Window

QP LoadFromFile error

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=2380
Printed Date: 13 Jul 25 at 11:43PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QP LoadFromFile error
Posted By: purple
Subject: QP LoadFromFile error
Date Posted: 24 Aug 12 at 3:01AM
I'm using Quick PDF Library 8.16
Any one encounter this bug in delphi7?
QP.LoadFromFile(f)=0
and QP.LastErrorCode is 0, this is not define in the reference guide.
 
and in Quick PDF Library 7.xx QP.LoadFromFile is 1.



Replies:
Posted By: Ingo
Date Posted: 24 Aug 12 at 7:55AM
Hi Purple!

This has to to with ansi strings and unicode strings.
QP handling has changed in this point.
It depends on what your dev-environment expects.
Try the LoadFromFileA and then it should work.
If you want to know more details try the search function
above and search with LoadFromFileA.

Cheers and welcome here,
Ingo



Posted By: AndrewC
Date Posted: 27 Aug 12 at 4:02PM
What development environment are you using ?  If it is PowerBasic, PowerBuilder or WinDev then you may need to use the LoadFromFileA function as Ingo suggested. 

Is QP.UnlockKey successfully returning 1 ?  If it is then you don't need to use the LoadFromFileA function.

LoadFromFile errors can also be created by malformed PDF files.  You may need to send us the PDF file via the official support forums and we can see what could be causing the error.

Andrew.


Posted By: Ingo
Date Posted: 27 Aug 12 at 9:44PM
Hi Andrew!

Value 1 comes from version 7.xx - there was only one version from LoadFromFile.
So he should try LoadFromFileA ;-)

Cheers, Ingo



Posted By: purple
Date Posted: 11 Sep 12 at 3:55AM
I use Quick PDF Library 8.16 without fullsource code. I can not use the qp"LoadFromFileA" function.
The filename is unicode, I send the filename as widestring to qp"LoadFromFile", it return false,
and I change filename to A-Z string, send string to qp"LoadFromFile", and it works.
Is this a bug?  thank you


Posted By: AndrewC
Date Posted: 11 Sep 12 at 4:30AM
Can you please create a support ticket at  http://www.quickpdflibrary.com/support/support-query.php - http://www.quickpdflibrary.com/support/support-query.php   When you receive a ticket number then send a reply email and attach the problem file.

I will look at the PDF to see what the problem could be.  I see you are using Delphi 7 so the LoadFromFileA function doesn't apply in this case.

I assume that QP.UnlockKey is returning 1 also ?  If not then the licence key is not valid for QPL 8.xx for some reason.

Andrew.



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