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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - SaveToFile Returns Success but there's no PDF File
  FAQ FAQ  Forum Search   Register Register  Login Login

SaveToFile Returns Success but there's no PDF File

 Post Reply Post Reply
Author
Message
DevGuy View Drop Down
Beginner
Beginner


Joined: 26 Jan 12
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevGuy Quote  Post ReplyReply Direct Link To This Post Topic: SaveToFile Returns Success but there's no PDF File
    Posted: 26 Jan 12 at 9:16PM
Hi All,
 
We're using the ActiveX edition of QuickPDF in a VB6 application that generates some reports.
 
Our routine generates a simple report per the following pseudo-code -
 
  Dim QP As QuickPDFAX0813.PDFLibrary
  Set QP = CreateObject(ClassName)
  If (QP.UnlockKey(<OurKey>) <> 1) Then Exit Sub
    <Do our fancy report generation stuff here e.g. QP.DrawText(100, 500, "Example: Hello World")>
  QP.SaveToFile(<OurPath>\Output.pdf")
 
We incorporated the distribution of the "quickpdfax0813.dll" file in our program's installer (MSI), and set it to self-register the DLL.
 
When we deploy and run the program on Windows XP or Windows Server 2003, the pdf gets generated without a problem.
 
When we deploy and run the same program on Windows Server 2008, the PDF seems to get generated but there is no PDF file to be found on the file-system.
 
We temporarily used MsgBoxes to indicate progress within the PDF generation functions, and they indicate that the entire PDF generation process succeeded, including the "SaveToFile" function returning "1" for success.
 
The fact that we're getting a "1" return value for "SaveToFile" in addition to indcating that the file was geneated, also indicates that the ActiveX was registered properly, so one could rule out registration related issues.
 
However' there's no PDF file to be found in the expected location!!!
 
We would really appreciate some assistance in this regard.
 
Thanks much!
-M
Back to Top
Rick_Dev View Drop Down
Beginner
Beginner
Avatar

Joined: 25 Jan 12
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rick_Dev Quote  Post ReplyReply Direct Link To This Post Posted: 30 Jan 12 at 6:56PM
what is your output path?
Any chance you are running on Vista or above and trying to save to the program files folder?

Just a thought.

Rick
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 25 Jun 12 at 12:32PM
I know that Windows 7 doesn't allow files to be saved in certain directories including Program Folders, root directories eg C:\    

Usually the current directory is set to be the same directory as the the EXE file.  You can use functions such as GetCurrentDirectory to determine where the files will be saved.

Andrew.

Back to Top
barqyDev View Drop Down
Beginner
Beginner


Joined: 10 Feb 12
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote barqyDev Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jun 12 at 5:08AM
Frequently  
C:\Users\Username\AppData\Local\VirtualStore\Program Files\<username>\
for VB6, you can probably use  environment variables to determine where to save files
If none of the above-mentioned options are available, use the environment variable:
  • %ALLUSERSPROFILE% – Shared program data directory for all users
  • %LOCALAPPDATA% – Per-user program data directory (non-roaming) - Windows Vista or later
  • %APPDATA% – Per-user program data directory (roaming) - Windows Vista or later

FROM HERE: 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store