Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word displayed without menu and toolbars
Message
From
19/02/2001 09:48:41
Carol Dewar
Magram Computer Services Llc
Saugerties, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00476481
Message ID:
00477274
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform