Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Can't Close Word Instance without Save Changes Dlg Box

Reply
Thread Tools

Can't Close Word Instance without Save Changes Dlg Box

 
 
PoulsenL@capanalysis.com
Guest
Posts: n/a
 
      07-21-2003
I am using COM to manipulate word attachments to emails. Once I use them I
am not concerned with saving the results. I use the following line:

myWord.ActiveDocument.Close(wc.wdDoNotSaveChanges)

This closes the document fine but only after I click no on the resulting
"Save Changes" dialog box. Am I missing something really simple? I can
send preceding lines if needed.

Thanks in advance,

Loren Poulsen

 
Reply With Quote
 
 
 
 
Jason Whitlark
Guest
Posts: n/a
 
      07-25-2003
"GerritM" <(E-Mail Removed)> wrote in message news:<bfh8d3$3h$(E-Mail Removed)>...
> <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
> > I am using COM to manipulate word attachments to emails. Once I use them

> I
> > am not concerned with saving the results. I use the following line:
> >
> > myWord.ActiveDocument.Close(wc.wdDoNotSaveChanges)
> >
> > This closes the document fine but only after I click no on the resulting
> > "Save Changes" dialog box. Am I missing something really simple? I can
> > send preceding lines if needed.
> >
> > Thanks in advance,
> >
> > Loren Poulsen
> >

> I have never tried this in Word. However I had the same kind of problem in
> Visio, which could be solved by setting the document status to saved,
> something like:
> myWord.ActiveDocument.saved = 1
>
> regards Gerrit



I think "saved" needs to be capitalized

myWord.ActiveDocument.Saved = True

-Jason
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a TCP socket? (TCPSocket#close doesn't close it) IƱaki Baz Castillo Ruby 7 01-12-2010 01:32 PM
how best to put a notify/cancel status dlg up during file processing of swt app Jeff Kish Java 5 04-12-2006 08:45 AM
Problem when subclass instance changes base class instance variable Gerry Sutton Python 1 04-16-2005 06:06 AM
Self.close() window without the dialog close?Yes/NO Walter Beierdonck Javascript 1 04-30-2004 02:48 PM
ms word 2002 prompts to save changes add nauseum code_wrong Computer Support 7 01-23-2004 10:58 PM



Advertisments