Using Word 2000 in an application

  • Thread starter Thread starter Helen Trim
  • Start date Start date
H

Helen Trim

I have an application that allows users to edit documents
using Word 2000. Sometimes it opens Word but the toolbars
are missing. Users find this very frustrating. I can't
track it down as it is intermittent.

Has anyone else had this problem? Any ideas?

I create the class with:

Public Class WordCreateLetterClass
Public WithEvents WordApp As Word.Application

Public Sub New()

WordApp = New Word.Application
Me.WordApp.WindowState =
Word.WdWindowState.wdWindowStateMaximize

End Sub
End Class

and instantiate it with:

Letter = New WordCreateLetterClass
Letter.WordApp.Documents.Open(FileName:=gstrTemplate,
ReadOnly:=True, AddToRecentFiles:=False)

Letter.WordApp.ActiveWindow.View.Type = 3 ' PrintPreview
Letter.WordApp.Visible = True
Letter.WordApp.Application.Activate()


Thanks in advance
Helen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top