New Forum | Previous | Next | (P-PDF) Developers
Topic: Problem with deleting file..
Conf: (P-PDF) Developers, Msg: 137332
Date: 8/5/2005 12:09 AM
Well, I am opening, saving and closing a PDF in a typical manner, something like:
Dim Exch As Acrobat.CAcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Exch = CreateObject("AcroExch.App")
AVDoc = CreateObject("AcroExch.AVDoc")
PDDoc = CreateObject("AcroExch.PDDoc")
PDDoc = AVDoc.GetPDDoc
PDDoc.Save(PDSaveFull + PDSaveCollectGarbage, fname)
Exch = Nothing
Everything seems to be working but when i exit the application and try to delete the PDF file (from Windows Explorer) that was just saved i am told that it's being used by another person/process and hence can't be deleted, even when the above application is exited. In order to delete it i have to open the PDF file and close it again using Acrobat Pro 7.
Any idea what's wrong? (i'm using VB.net)