Any option to prevent word2002 starting without the blank document

P

Peter

Hello
Whenever I start Word 2002, it starts up with a blank Document called
Document1, Document2 etc.

I have a Word 2002/SP3 on WinXP/SP2 German version, all uptodate.
I am using Windows automation and I try to create a document instance of a
Template using the function WordApp.Add(..) from another Application written
in Gupta(Centura).

While calling this method Add(..) ,Word simply starts a blank Document1 and
a document instance of the Template. This creates problem for me, because in
MDI mode I get a whole lot of blank Documents which is very much undesirable.

Is there any option in Word with which I could instruct Word not to start
with the default document ? Any hints regarding this would be valuable.

Thanks

Peter
 
J

Jean-Guy Marcil

Peter was telling us:
Peter nous racontait que :
Hello
Whenever I start Word 2002, it starts up with a blank Document called
Document1, Document2 etc.

I have a Word 2002/SP3 on WinXP/SP2 German version, all uptodate.
I am using Windows automation and I try to create a document instance
of a Template using the function WordApp.Add(..) from another
Application written in Gupta(Centura).

While calling this method Add(..) ,Word simply starts a blank
Document1 and a document instance of the Template. This creates
problem for me, because in MDI mode I get a whole lot of blank
Documents which is very much undesirable.

Is there any option in Word with which I could instruct Word not to
start with the default document ? Any hints regarding this would be
valuable.

How are you creating the Word Instance?
Are you checking if it is already running first?

For example, if you use:

Dim wApp As Word.Application

Set wApp = CreateObject("word.application")
wApp.Visible = True

It will create a new instance that does not contain the "Document1".

But it does not check if Word is already running or not...

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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

Top