Accessing "Print Setup" from a program

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

fbrayton
Posts: 21
Joined: Wed Nov 05, 2008 11:09 am

Accessing "Print Setup" from a program

Postby fbrayton » Fri May 22, 2009 6:23 am

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.

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Accessing "Print Setup" from a program

Postby EViews Jason » Fri May 22, 2009 8:16 am

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.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 32 guests