PLEASE HELP!!!! Menu disabled on PrintPreview

K

KZeeh

Below is most of my code to run a print preview. It comes up great, but the
only buttons enabled are the 3 in the top right corner (minimize, restore
down, close). I I can't close just the actual document or pull down any of
the menu options under File, Edit, etc... It is not greyed out, just acts
like you aren't clicking on them. Any ideas at all? Do I need to set some
property that I am overlooking? Thanks so much.
***********************************************
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