K
KZeeh
I am programmatically opening a mailmerge document and bringing it up in
PREVIEW mode. When I look at the document, I would like to close the
document but leave WORD open. But the entire menu seems to be disabled as
well as the box to just close the current document. The only thing that is
enabled is the upper right corner box to close WORD altogether. Is there a
command that I need in order to have the menu enabled? Thanks. Here is most
of my code to preview the document:
***************************
oDoc.MailMerge.MainDocumentType = 0
oDoc.MailMerge.OpenDataSource;
(dsname,wformat,wconfirmconv,wreadonly,wlinktosource,;
waddtofilelist,wpassworddoc,wpasswordtemp,wrevert,;
wprotectdoc,wprotecttemp,wconn,wsqlstatement)
oDoc.MailMerge.Destination = 0
oDoc.MailMerge.Execute
oWord.Documents(1).Activate
oWord.WindowState = 1
oWord.Visible = .T.
PREVIEW mode. When I look at the document, I would like to close the
document but leave WORD open. But the entire menu seems to be disabled as
well as the box to just close the current document. The only thing that is
enabled is the upper right corner box to close WORD altogether. Is there a
command that I need in order to have the menu enabled? Thanks. Here is most
of my code to preview the document:
***************************
oDoc.MailMerge.MainDocumentType = 0
oDoc.MailMerge.OpenDataSource;
(dsname,wformat,wconfirmconv,wreadonly,wlinktosource,;
waddtofilelist,wpassworddoc,wpasswordtemp,wrevert,;
wprotectdoc,wprotecttemp,wconn,wsqlstatement)
oDoc.MailMerge.Destination = 0
oDoc.MailMerge.Execute
oWord.Documents(1).Activate
oWord.WindowState = 1
oWord.Visible = .T.