
Winword problem w/ a DeleteFile call after a Navigate call
Have a look at [1], [2]
[1] Q177269, "PRB: Internet Explorer 4.0 Keeps Active Document Servers
Running".
[2] Q167230, "HOWTO: Detect When Internet Explorer Holds Controls and Pages
in Memory".
All the best,
Vadim.
Quote:
> Hello Olivier,
> Just few assumptions: (a) sometime IE holds ActiveX controls / ActiveX
> documents in the cache. (b) Word out-of-proc server requires in some delay
> to be unloaded. You can try to close office document manually before
> navigating to new page, e.g. retrieve office object model and close
current
> rtf document via automation.
> Cheers,
> --
> Best regards,
> Vadim Melnik,
> _____________________
> http://www.docsultant.com/
> > I use IE in an ATL project to see local file on HD.
> > I load an Office document (rtf file) through ShellExplorer with
> > Navigate.
> > This file is a temporary file that I want to delete after the next
> > Navigate call.
> > When I call DeleteFile for the temporary file, GetLastError return me
> > that an ERROR_SHARING_VIOLATION error was happened, even if the new
> > file to load is another rtf file format.
> > Thanks for any help.
> > ------------
> > Olivier