G
Guest
I am using the AxSHDocVw.AxWebBrowser control (named PreviewBrowser) in my C#
app to load a pdf file:
PreviewBrowser.Navigate(strPDF ,ref objNull,ref objNull,ref objNull,ref
objNull);
These PDF files are created and stored in a temp folder. The older files
from temp need to be deleted everytime prior to calling the Navigate function
for the current file.
But I am getting an exception when i try to delete the temp folder
(containing the older pdf files)
"The process cannot access the file "xxx.pdf" because it is being used by
another process."
Is there any property/setting for the WebBrowser control to free up the file??
app to load a pdf file:
PreviewBrowser.Navigate(strPDF ,ref objNull,ref objNull,ref objNull,ref
objNull);
These PDF files are created and stored in a temp folder. The older files
from temp need to be deleted everytime prior to calling the Navigate function
for the current file.
But I am getting an exception when i try to delete the temp folder
(containing the older pdf files)
"The process cannot access the file "xxx.pdf" because it is being used by
another process."
Is there any property/setting for the WebBrowser control to free up the file??