Hi, im writing a VBS script that prints all files in a folder using the relevant application.
Everything works ok though word docs are causing me a problem. I wanted to supress all warning messages when the file is opened. e.g read only and margin warnings etc.
Can this be done?
Everything works ok though word docs are causing me a problem. I wanted to supress all warning messages when the file is opened. e.g read only and margin warnings etc.
Can this be done?
Code:
Set objWord = WScript.CreateObject("Word.Application")
objWord.Documents.Open objFile.Path
objWord.ActiveDocument.PrintOut
Wscript.Sleep(1000)
objWord.ActiveDocument.Close
objWord.Quit