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!
DAOpenFile + DASaveAsFile + same name |
Post Reply |
Author | |
ZarkoGajic
Beginner Joined: 18 Mar 09 Location: Croatia Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 26 Mar 09 at 10:56AM |
Hi,
With the file being opened using DAOpenFile and after some changes I want to use DASaveAsFile to save the file under the original name.
The DASaveAsFile fails with 402 (Output file already exists and could not be deleted)
Yes the actual situation is that the file cannot be deleted.
I could save under a different name, delete original then rename the new one.
Question: is this the way to go or should DASaveAsFile be able to overwrite the file opened?
|
|
-zarko gajic
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Yes. That's the way ;-)
The current process has already a handle on the file... the complete document structure is built in memory and you want to change the document on disk - that's not possible 'cause strange system situations will appear. Cheers, Ingo |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
In this case it sounds like the DAAppendFile function might be a better option. It lets you save changes directly to the original file, instead of trying to overwrite it.
Cheers, Rowan |
|
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