Webbrowser control, disable save dialog

  • Thread starter Thread starter Henrik
  • Start date Start date
H

Henrik

Hello!

I have a webbrowser control on my form that holds a linked word
document. Whenever I try to navigate to a new doc the browser detects
that the old doc has been edited and prompts the user about this. I
want to get rid of this annoying dialog. The current file in the
webbrowser is up for deletion anyway.

I have tried using:

webcontrol1.document.save

before the navigate command without success. I also tried the execwb
method but it seems MS don't want to disable the prompt due to security
reasons.

Does anyone have a solution?

Sincerly

Henrik
 
What code are you using to load the document into the control, and
navigate to a new document?

Is Word running within the control? Can you access the Word object
model? If so, just set the document's Saved property to true, or
somesuch.

HTH,
TC (MVP Access)
http://tc2.atspace.com
 
Back
Top