Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unwanted Save Document dialog

2 views
Skip to first unread message

Chris Jones

unread,
Apr 19, 1999, 3:00:00 AM4/19/99
to
I am using an embedded Web Browser control to view a Word document (IE4.01,
VB5, Word 8). I am programmatically saving the document before navigating to
another document depending on the value of the Saved property of the
Document object returned by browser.Document.

When I navigate to another URL I get a dialog saying "This document has been
modified. Do you want to save changes?" with Yes, No and Cancel buttons. I
have browser.Silent set to True and
browser.Document.Application.DisplayAlerts = wdAlertsNone. How can I prevent
this dialog from appearing?

Ta
Chris Jones

Alexei M Reatov

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to

Chris Jones wrote in msg <#iC5Mroi#GA.160@cppssbbsa03>:

>I am using an embedded Web Browser control to view a Word document (IE4.01,
>VB5, Word 8). I am programmatically saving the document before navigating
to
>another document depending on the value of the Saved property of the
>Document object returned by browser.Document.
>
>When I navigate to another URL I get a dialog saying "This document has
been
>modified. Do you want to save changes?" [...] How can I prevent
>this dialog from appearing?


If you are using IPersist<Something> interface to programmatically save your
document, the last parameter in the Save method is a Boolean flag which
indicates, among other things, that the Dirty flag of the document should be
cleared. You might want to play with this flag to get rid of the "Save"
dialog. Actually, the fact that you are getting this dialog means your
document is *not* quite saved...


;-) Alexei Reatov

-------------
*** Become a beta-tester of DejaViews - my new cool news search client!
*** www.betterbrowser.com/DejaViews.htm, (updated daily)

0 new messages