Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word displayed without menu and toolbars
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word displayed without menu and toolbars
Miscellaneous
Thread ID:
00476481
Message ID:
00476481
Views:
66
I am testing code changes to mailmerge. When the file does not exist and I do the visible = .t., my Word has no menus or toolbars. Now I do have the 2.1 mdac and get the window from Word to select the convertor or the Word ODBC before the Window is displayed, so maybe that is part of the problem. But how do I guarantee that the menu and toolbars will always be displayed?

goWordApp = createobject("Word.Application")
if file(Merge_letter)
goWordApp.documents.open(merge_letter)
gowordapp.activedocument.mailmerge.destination = 0 && to a new document
goWordApp.ActiveDocument.MailMerge.Execute
else
gowordapp.Documents.Add
goWord.ActiveDocument.MailMerge.MainDocumentType = 0
goWordapp.ActiveDocument.MailMerge.OpenDataSource(TEMP_DBSTR)
endif
goWordApp.Visible = .T.
Next
Reply
Map
View

Click here to load this message in the networking platform