Release a file from web control so it can be deleted
-
I have a small application and use iText to modify a .pdf. I then use the web control to display the pdf in the form for the user. If the user makes modifications to the paramaters used to generate the document, The application generates a new file, then displays the new file, then attempts to delete the old file; however, I receive a message that the file is still being used by another process. How can I release or dispose of this file, so it may be deleted? Thanks, Steve
-
I have a small application and use iText to modify a .pdf. I then use the web control to display the pdf in the form for the user. If the user makes modifications to the paramaters used to generate the document, The application generates a new file, then displays the new file, then attempts to delete the old file; however, I receive a message that the file is still being used by another process. How can I release or dispose of this file, so it may be deleted? Thanks, Steve
What control are you using to show the .PDF file?? You're best source of information liek that would be the people who wrote the control you're using.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
What control are you using to show the .PDF file?? You're best source of information liek that would be the people who wrote the control you're using.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...It's the WebBrowser on the Tool bar in Visual Studio. I would assume it is Microsoft that is distributing the object, but I don't know.
-
It's the WebBrowser on the Tool bar in Visual Studio. I would assume it is Microsoft that is distributing the object, but I don't know.
The webbrowser is not showing the PDF. A control registered with Internet Explorer is doing it. The webbrowser control is nothing more than a stripped down version of IE.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
The webbrowser is not showing the PDF. A control registered with Internet Explorer is doing it. The webbrowser control is nothing more than a stripped down version of IE.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...Then I would say it is the Adobe Reader plug-in, as the tool bars present in the frame are the Adobe tools.