Webbrowser control, disable save dialog

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
 
T

TC

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top