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 Returns Success but there's no PDF File |
Post Reply ![]() |
Author | |
DevGuy ![]() Beginner ![]() Joined: 26 Jan 12 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Rick_Dev ![]() Beginner ![]() ![]() Joined: 25 Jan 12 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
barqyDev ![]() Beginner ![]() Joined: 10 Feb 12 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
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:
FROM HERE:
|
|
![]() |
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