Page 1 of 1

Accessing "Print Setup" from a program

Posted: Fri May 22, 2009 6:23 am
by fbrayton
Is it possible to set or alter the "Print Setup" entries from within a program? I don't see any documentation on how to do this, so perhaps it isn't. Specifically, we want a batch program to print a spool object to a PDF file. This program will be run by many different people, and so I'd like the program to select our PDF printer automatically and to specify a run-specific name of the PDF file.

Re: Accessing "Print Setup" from a program

Posted: Fri May 22, 2009 8:16 am
by EViews Jason
You can turn on/off printer redirection via the 'output' command. For example:

Code: Select all

output(s) myspool    'have all prints commands print to 'myspool'
print mytable 'adds a copy of the object mytable to myspool

output off  'turn off print redirection and print to the printer
print mytable 'sends mytable to the currently set printer


But there currently isn't a command to set which printer you wish to print to.