General information
Category:
COM/DCOM and OLE Automation
Title:
Word displayed without menu and toolbars
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only