Print Page | Close Window

SaveToFile always returns 0

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=2925
Printed Date: 22 Nov 24 at 11:43PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SaveToFile always returns 0
Posted By: igor.o
Subject: SaveToFile always returns 0
Date 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



Replies:
Posted By: Rowan
Date Posted: 20 Jun 14 at 7:04AM
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.


Posted By: igor.o
Date Posted: 22 Jun 14 at 5:17AM
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? 


Posted By: Rowan
Date Posted: 22 Jun 14 at 10:49AM
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.


Posted By: Rowan
Date Posted: 22 Jun 14 at 10:50AM
Use the SetTempPath to set the directory before calling TestTempPath...


Posted By: igor.o
Date Posted: 24 Jun 14 at 8:14PM
Hi Rowan,

It looks very strange because the both functions (SetTempPath and TestTempPath) return 1. SaveToFile however, called after them returns 0.

Any ideas?


Posted By: AndrewC
Date Posted: 26 Jun 14 at 11:03AM
Igor,

This is a simple permissions problem not related to the library.  You will need to talk to the administrator of the server to get Read/Write/Create/Update etc access to the directory.

Andrew



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