Print Page | Close Window

SaveToFile() fails

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2063
Printed Date: 22 Nov 24 at 6:30PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SaveToFile() fails
Posted By: Ardi
Subject: SaveToFile() fails
Date 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.
 



Replies:
Posted By: Ingo
Date Posted: 04 Dec 11 at 1:50PM
Hi Ardi!

Good to know: What's the programming language you're using?

Cheers and welcome here,
Ingo



Posted By: tadicboris
Date Posted: 17 Apr 15 at 8:18PM
Does anyone has solution for this problem. I am using PDF Activex in Xojo and cant save pdf file!


Posted By: TLeoN12345
Date Posted: 22 Apr 15 at 4:07PM
"Save to file" don't work for me too.Confused
Windows 8.1 - Visual Studio 13 - WPF-form - C#
PDF-Lib: ActiveX 11.12 32bit-Version


Posted By: erico
Date Posted: 22 Apr 15 at 10:35PM
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


Posted By: Ingo
Date Posted: 23 Apr 15 at 7:46AM
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:
http://www.quickpdf.org/forum/sample-code_forum13.html" rel="nofollow - http://www.quickpdf.org/forum/sample-code_forum13.html
 
Cheers, Ingo
 


-------------
Cheers,
Ingo



Posted By: tadicboris
Date Posted: 24 Apr 15 at 8:38AM
Solution for Xojo (ActiveX) is quite simple. You must enter licence key before save file. Thanks for all.


Posted By: mLipok
Date Posted: 28 Apr 15 at 10:09AM
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


Posted By: ogmiga
Date Posted: 07 Sep 15 at 8:49PM
What is the unlock-key for the trail version. I cannot save to pdf file. Thanks



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