HELP - Why is my whole menu disabled????

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.
 

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