Tom's Guide | Tom's Hardware | Tom's Games | PC Safety Suite
![]() |
![]() |
![]() |
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.
+1 | ![]() |
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
+1 | ![]() |
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?
+1 | ![]() |
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
+1 | ![]() |
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
+1 | ![]() |
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.
+1 | ![]() |
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.QuitSet WordApp = Nothing
---- end wordprint.vbs file ------------------ start Batch file ------------
start \\devweb01\docs\wordprint.vbs \\devweb01\docs\test.rtf
----- end Batch file ------------Any ideas?
![]() |
User can not log into pro...
|
Graphics card performance...
|

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