Print Page | Close Window

LastErrorCode after SaveToFile

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3371
Printed Date: 06 May 24 at 6:57AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: LastErrorCode after SaveToFile
Posted By: luet
Subject: LastErrorCode after SaveToFile
Date Posted: 16 Aug 16 at 9:09PM
When I open a PDF and it alters and then again wants to save under the same file name, it does not work if the file is opened by another program. Blocked.

lRet = QPdf.SaveToFile (filepath)

LRET = 0

But I can not QPdf.LastErrorCode query why I could not save the file?
QPdf.LastErrorCode = 0

How can I check the LastErrorCode at SaveToFile?
In other methods, it is nevertheless also.

thank you
luet



Replies:
Posted By: Ingo
Date Posted: 16 Aug 16 at 9:41PM
Hi Luet,

i've already told that it's better to read ;-)
I (and nobody here) wants to replace the developer guide or online reference with our personal asistance for you ;-)

Please use:
http://www.quickpdf.org/
Then click on "Documentation (Reference Guide)".
Then click on "search" in the menu at the top of the page.
In the search field you can insert "LastErrorCode".

Now you can see all possible error codes.
There's nothing regarding the save functionality.
So you can't use LastErrorCode after "SaveToFile".
But you already know that a returning value 0 means that the save failed - this should be enough i think.



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




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