I’m new to administering Document Agent Server and have a question about printing. We’re a fairly large company and have a large wan with about 100+ networked printers located across the country. I would like to send a report to DocAgent and have it printed on a nightly basis. How do I specify which network printer to use for this report and a different printer for another report?
Currently, using the DocAgent “Print” function will print it only to the server’s default printer. You will have to attach a script to the report/job that will execute and set the specific network printer path (the printer will have to be installed on the server). This is how I do it on NT4 with SQL Server. I don’t know if there is a better way of doing it. I am currently having problems with my script as it appears the Document Agent Server is not initializing each printer prior to sending the job, so if it can’t “wake it up”, the job prints to the default.
I am currently working on a solution (if it works), but you should try the scripting option first…
The script would look something like
Sub Main()
dim doc as BODocument
set doc = Application.Documents.Item(1)
doc.Refresh
doc.PrintOut("\server\printer")
End Sub