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 always returns 0 |
Post Reply |
Author | |
igor.o
Beginner Joined: 20 Jun 14 Location: Israel Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 20 Jun 14 at 7:01AM |
Hi,
It always worked but now SaveToFile method returns 0. In the documentation it means that "The file could not be created". What can I understand from it? I do it after calling DrawImage method which returns 1 (The image was drawn successfully). The file exists because I'm trying to add an image to the same file. I checked the permissions. What else can I check to fix the problem? Thank you in advance, Igor
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi Igor,
Are you using the trial version by any chance? If so, check to see if the trial license key has expired. This would stop SaveToFile from working. Call LicenseInfo. Cheers, - Rowan.
|
|
igor.o
Beginner Joined: 20 Jun 14 Location: Israel Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hi Rowan,
I have a license for QuickPdf. I noticed that when I try to save a file to "C:\Temp" then it works but when to \\OURIP\\Archives\\ it doesn't even it worked recently. What permissions I need to save file with QuickPdf? What can I check now?
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi igor.o,
You will need at least read/write permissions for the directory you want to save files to. You can try the TestTempPath function to see if the folder you are saving to has the necessary permissions. Cheers, - Rowan.
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Use the SetTempPath to set the directory before calling TestTempPath...
|
|
igor.o
Beginner Joined: 20 Jun 14 Location: Israel Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hi Rowan,
It looks very strange because the both functions (SetTempPath and TestTempPath) return 1. SaveToFile however, called after them returns 0. Any ideas?
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Igor, 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