Printing Word Documents Using the Command Prompt

Printing Word Documents Using the Command Prompt

 

  

Copy the code below and save it to a file with the extension: .vbs. Example: Print_Word_Document.vbs

Set app = Wscript.CreateObject("Word.Application")
' app.Visible = true
app.Documents.Open("D:\TEMP\test.doc")
app.Options.PrintBackground = False
app.ActiveDocument.PrintOut:


Saving the file with the .vbs extension will create an icon next to the file. To run it, click the icon or type at the command prompt: Print_Word_Document.vbs



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:http://www.lazydba.com/legal.html



Oracle LazyDBA home page