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!
SaveToFile() fails |
Post Reply |
Author | |
Ardi
Beginner Joined: 04 Dec 11 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 04 Dec 11 at 4:40AM |
Hello,
I tried to create my first pdf file. The steps taken were: 1) Load the dll library: LoadLibrary(...) 2) Get functions addr: GetProcAddress(...) to get addr for: a) QuickPDFCreateLibrary b) QuickPDFReleaseLibrary c) QuickPDFDrawText d) QuickPDFSetOrigin e) QuickPDFSaveToFile 3) Then I invoke the functions in the following order to write a simple text: a) QuickPDFCreateLibrary b) QuickPDFSetOrigin c) QuickPDFDrawText d) QuickPDFSaveToFile e) QuickPDFReleaseLibrary f) FreeLibrary() to free the dll All are successful except the QuickPDFSaveToFile() that returns 0. I am making sure that the parameters to the QuickPDFSaveToFile are of correct type (int, wchar_t*). The documentation for the QuickPDFSaveToFile() has no information on the possible causes of the failure. Thanks for your help. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Ardi!
Good to know: What's the programming language you're using? Cheers and welcome here, Ingo |
|
tadicboris
Beginner Joined: 17 Apr 15 Location: Belgrade Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Does anyone has solution for this problem. I am using PDF Activex in Xojo and cant save pdf file!
|
|
TLeoN12345
Beginner Joined: 22 Jul 10 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
"Save to file" don't work for me too.Windows 8.1 - Visual Studio 13 - WPF-form - C#PDF-Lib: ActiveX 11.12 32bit-Version
|
|
erico
Senior Member Joined: 24 Sep 14 Location: Minnesota USA Status: Offline Points: 51 |
Post Options
Thanks(0)
|
More detail regarding the failure would really help. Check LastErrorCode, provide details regarding the circumstances, code snippet perhaps?
If SaveToFile had an intrinsic error, I think everyone would be having this problem. |
|
Eric O
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Like Erico told already:
LastErrorCode would help a lot. Next questions: Which version (dll or Delphi, lite, test, normal, activeX, 32- or 64-bit) you're using? Does this happen with all files? Is it possible to upload a problem file anywhere for checking? Here you can see samples how to work with QuickPDF: Cheers, Ingo |
|
Cheers,
Ingo |
|
tadicboris
Beginner Joined: 17 Apr 15 Location: Belgrade Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Solution for Xojo (ActiveX) is quite simple. You must enter licence key before save file. Thanks for all.
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
|
I you are using commercial version, then you should enter you licence key, in the begining.
Just after you load the dll library.
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
ogmiga
Beginner Joined: 07 Sep 15 Location: Nigeria Status: Offline Points: 3 |
Post Options
Thanks(0)
|
What is the unlock-key for the trail version. I cannot save to pdf file. Thanks
|
|
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