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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DAOpenFile + DASaveAsFile + same name
  FAQ FAQ  Forum Search   Register Register  Login Login

DAOpenFile + DASaveAsFile + same name

 Post Reply Post Reply
Author
Message
ZarkoGajic View Drop Down
Beginner
Beginner
Avatar

Joined: 18 Mar 09
Location: Croatia
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZarkoGajic Quote  Post ReplyReply Direct Link To This Post Topic: DAOpenFile + DASaveAsFile + same name
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 09 at 11:07AM
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
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 09 at 7:56PM
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store