Computing.Net > Forums > Windows 2000 > automatically invoke Word

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

automatically invoke Word

Reply to Message Icon

Name: pushcode
Date: February 19, 2004 at 10:48:28 Pacific
OS: Win 2000
CPU/Ram: pIII
Comment:

Is there a way to automatically invoke Word, have it print a file, then close...all without user intervention?

I'm think a batch type of file might be able to handle this, but I'm not sure. Any thoughts or examples would be great.

Thanks.




Response Number 1
Name: Mick C
Date: February 19, 2004 at 13:16:37 Pacific
+1
Reply:

In Windows XP, You can Right Click a file, (Say TEST.DOC) Select Print. XP will Open 'WORD' Start print job and close Word. All from the desktop. I am sure 2000 will do the same.

Please reply with a message to let us all know we are on the right track with your problem



Response Number 2
Name: pushcode
Date: February 19, 2004 at 14:02:15 Pacific
+1
Reply:

Actually, I'm hoping for a batch file or something like that which I can launch via a web page. The whole point is that I don't want a user to have to do anything, but click on a web form button to trigger the process. I can handle all the web stuff, I just don't know how to make the document print.

Does that help clarify?



Response Number 3
Name: IVO
Date: February 19, 2004 at 14:15:55 Pacific
+1
Reply:

Look at that

http://dbforums.com/arch/52/2003/4/764711

it may solve your need, but if you experience any more trouble post again



Response Number 4
Name: Mick C
Date: February 20, 2004 at 04:57:19 Pacific
+1
Reply:

The point I was trying to make is that Windows has a way of doing what you want! I agree that you still have to find out how windows did it ... But it is possible!!

Please reply with a message to let us all know we are on the right track with your problem



Response Number 5
Name: pushcode
Date: February 20, 2004 at 05:47:09 Pacific
+1
Reply:

Mike C,

I see your point. And thanks for your post. Actually, I was aware that XP did that... It's what gave me the idea.



Related Posts

See More



Response Number 6
Name: pushcode
Date: February 20, 2004 at 06:26:11 Pacific
+1
Reply:

Thanks IVO, that was exactly what I was looking for. However, I need to be able to use a specific printer, not the user's default.

Does anyone know what script I need to be able to make it print to a specific printer?
The printer name and location is: "\\ds2\Konica 7060PS Back"

Here's the code I got from the link provided by IVO, modified to work for me:
----- start wordprint.vbs file ------------
Set WordApp = CreateObject("Word.Application")

WordApp.Documents.Open(WScript.Arguments.Item(0))

WordApp.ActiveDocument.PrintOut False
WordApp.ActiveDocument.Close False
WordApp.Quit

Set WordApp = Nothing
---- end wordprint.vbs file -------------

----- start Batch file ------------
start \\devweb01\docs\wordprint.vbs \\devweb01\docs\test.rtf
----- end Batch file ------------

Any ideas?




Reply to Message Icon

User can not log into pro... Graphics card performance...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Google Ads



Results for: automatically invoke Word

Automatically Run Word Macro www.computing.net/answers/windows-2000/automatically-run-word-macro/44410.html

ms-word terminates as started www.computing.net/answers/windows-2000/msword-terminates-as-started/33541.html

How to save a .doc within Word 2000 www.computing.net/answers/windows-2000/how-to-save-a-doc-within-word-2000/26193.html