[comp.windows.ms] W4W - no Document 1 wanted

tlutz@hpdmd48.boi.hp.com (Todd Lutz) (05/17/91)

Is there any way to get Word for Windows to not automatically open a document
when it gets started?  Whenever I start Windows I end up having to manually
go in and close Document 1.  I've tried using an AutoExec macro but it seems
to run before Document 1 gets opened.  I'm using W4W version 1.1.

-- Todd Lutz

tim@int13.hf.intel.com (Timothy E. Forsyth) (05/19/91)

tlutz@hpdmd48.boi.hp.com (Todd Lutz) writes:
>Is there any way to get Word for Windows to not automatically open a document
>when it gets started?  Whenever I start Windows I end up having to manually
>go in and close Document 1.  I've tried using an AutoExec macro but it seems
>to run before Document 1 gets opened.  I'm using W4W version 1.1.

If you know what document file you want to work with, the recomended method
to open it would be to use the File Manager.  Using the File Manager, go to
the directory where the doc file is at and double click on it.  This will
start WinWord with the doc file as the only open document.  If you start
WinWord by just double clicking on the Program Manager WinWord icon, it is
assuming you want to start a new document.

Here's a trick to create icons for each document file.  Bring up both the
Program Manager and File Manager and position them so they will not cover
each other when you move from one to the other.  Now select the doc file
you want from the File Manager, push the left mouse button and drag over to
the Program Manager and drop it over the Program Manager group you want to
put the icon into.  If the association is set correctly you will see the
WinWord icon the the main part of the doc file name (i.e. without the .DOC).
Now all you have to do is double click on the icon to bring up that file in
WinWord.

Tim Forsyth
-- 
Tim Forsyth, Intel Corp., Desktop Computer Division, Hillsboro, Oregon, USA
Internet: tim@int13.intel.com or Tim_Forsyth@ccm.hf.intel.com
CompuServe: 74040,2712 (checked once a week)

colfelt@news.colorado.edu (COLFELT ANDREW BRINTON W) (05/19/91)

tlutz@hpdmd48.boi.hp.com (Todd Lutz) writes:

>Is there any way to get Word for Windows to not automatically open a document
>when it gets started?  Whenever I start Windows I end up having to manually
>go in and close Document 1.  I've tried using an AutoExec macro but it seems
>to run before Document 1 gets opened.  I'm using W4W version 1.1.

Word for Windows starts up the way you left it.  Therefore, if you close all
files upon exit you will leave the desktop in Word clear for the next time you
run it.  The other settings, such as Show All, and View Page/Draft/Outline,
also are preserved from the last session.

Andrew
colfelt@tramp.colorado.edu

akm@obelix.cs.uoregon.edu (Anant Kartik Mithal) (05/20/91)

In article <colfelt.674633657@tramp.Colorado.EDU> colfelt@tramp.Colorado.EDU writes:
>tlutz@hpdmd48.boi.hp.com (Todd Lutz) writes:
>
>Word for Windows starts up the way you left it.  Therefore, if you close all
>files upon exit you will leave the desktop in Word clear for the next time you
>run it.  The other settings, such as Show All, and View Page/Draft/Outline,
>also are preserved from the last session.

I just tried this: closed all the docs in W4W then exit, then
restarted it. It came up with doc1... 

The way to get this to work is to write your own "AutoExec" macro that
does something like a "FileClose", so that whenever you start word,
FileClose is executed. The logic will have to be a little more
intelligent than that: it will have to make sure that the file that is
closed is called Document 1, or else, if you double click on a file,
it won't open!

kartik
-- 
Anant Kartik Mithal                                     akm@cs.uoregon.edu
Research Assistant, 					(503)346-4408 (msgs)
Department of Computer Science,                         (503)346-3989 (direct)
University of Oregon, Eugene, OR 97403-1202

sip1@sam.spc.uchicago.edu (Timothy F. Sipples) (05/20/91)

I asked this question some time ago (about getting W4W to open without a
Document 1).  Two replies were especially helpful.  First, if you decide not
to use Document 1 (the empty document) and instead immediately go to open
other document from the File menu, Word will automatically close Document 1.
This approach is certainly sensible.  If you want to start a new document,
it's right there.  If you want to open an old document, Word eliminates the
empty document.  If you start Word with a filename on the command line
(or by double clicking on an existing document) no Document 1 will be created.

Another suggestion I received (although I haven't tried it) is that if you
use the command line switch /n when starting Word you'll get no Document 1.

T.F.S.
Timothy F. Sipples				sip1@sam.spc.uchicago.edu

colfelt@news.colorado.edu (COLFELT ANDREW BRINTON W) (05/20/91)

>I just tried this: closed all the docs in W4W then exit, then
>restarted it. It came up with doc1... 

>intelligent than that: it will have to make sure that the file that is
>closed is called Document 1, or else, if you double click on a file,
>it won't open!


Sounds like you found this out the hard way!

tlutz@hpdmd48.boi.hp.com (Todd Lutz) (05/20/91)

Timothy F. Sipples and William C Tom led me to the answer:

    winword /n

It is even documented in the manual, under "Starting Word from DOS" on
page 337.

Since I like to have Word for Windows automatically loaded upon starting
Windows, I put it on the load= line in my win.ini.  But command line options
aren't allowed on the load= line (at least I haven't figured out how to get
them to work).

So I did the following in win.ini:

    [windows]
    load=e:\tlutz\word\start.w4w

    [Extensions]
    w4w=d:\winword\winword.exe /n

where "e:\tlutz\word" is where I store my document files and "d:\winword" is
where the program is stored.  "start.w4w" is a non-existent file, but since
it ends with the "w4w" extension, it causes winword to get started (because
of the entry in the [Extensions] section).

Now Word for Windows is automatically loaded and it doesn't automatically
create a "Document 1".

Is there a better way to do this?