Word Ole Question
Posted on 1998-09-09
Can anyone help with this 3 part Ole question.
I'm looking for some tried and tested coding using the variant ('Word.Application') as against ('Word.Basic').
1/ I wish to have Word open maximized rather than the default normal. I was given the following code which does work great for ('Word.Basic')
If OpenDialog1.Execute Then
Any ideas for ('Word.Application')
2/ Quitting Word, whilst leaving one form going to another, for example, returning to a menu screen after using a working screen.
Using the following code
IF NOT VarIsEmpty (WordApp) THEN
seems to work ok if quitting Word using this procedure, but if you close Word from within itself, an error is generated, does anyone know coding to overcome this problem.
3/ Is there a simple way of finding Word's Ole object methods, for instance a list of methods, e.g Visible
I've tried to find out by importing Word's Type Library and had a brain meltdown.
If anyone can help they will deserve the points offered.