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!
![]() |
QP LoadFromFile error |
Post Reply ![]() |
Author | |
purple ![]() Beginner ![]() Joined: 24 Aug 12 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3530 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
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. Andrew.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3530 |
![]() ![]() ![]() ![]() ![]() |
Hi Andrew!
Value 1 comes from version 7.xx - there was only one version from LoadFromFile. So he should try LoadFromFileA ;-) Cheers, Ingo |
|
![]() |
|
purple ![]() Beginner ![]() Joined: 24 Aug 12 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Can you please create a support ticket at
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store