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