Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word displayed without menu and toolbars
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word displayed without menu and toolbars
Divers
Thread ID:
00476481
Message ID:
00476481
Vues:
64
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
Fil
Voir

Click here to load this message in the networking platform