Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word displayed without menu and toolbars
Message
De
19/02/2001 09:48:41
Carol Dewar
Magram Computer Services Llc
Saugerties, New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00476481
Message ID:
00477274
Vues:
24
I have encountered the no menu no toolbars in Word 2000 automation, also. From reading Woody's Office Watch, I think this is a bug that occurs when an error, like "file does not exist", happens during processing. I have robustly coded, so I minimize processing errors.

Good luck,
Carol Dewar
Magram Computer Services

>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.
Carol Dewar
Magram Computer Services LLC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform