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.
******************************************************
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.
******************************************************