Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement