Page 2 of 2
Re: Problem on saving chart as a pdf by programming.
Posted: Wed Aug 01, 2012 9:23 am
by startz
Liu,
I'm not sure that irfanView has a cli. But it's free so it's easy to try. The real advantage of using a spool is that you can easily put all your charts in one spool under program control. Then if you have only have to manually intervene once to write to a pdf.
Re: Problem on saving chart as a pdf by programming.
Posted: Wed Aug 01, 2012 10:00 am
by EViews Gareth
The disadvantage of a spool is if you want a separate pdf for each chart.
Re: Problem on saving chart as a pdf by programming.
Posted: Wed Aug 01, 2012 10:12 am
by startz
True, but I think Acrobat Pro is willing to extract pages into separate files. Admittedly, a bit of a kludge.
Re: Problem on saving chart as a pdf by programming.
Posted: Mon Aug 06, 2012 9:35 am
by Liu
I did some experiments according to our discussion above, and it almost worked the way I want.
Only there is one thing, I still can not control the default printer. Right now I have to click and set "PDF_writer" as printer before running the program.
Otherwise, by any chance if I printed a chart in eviews with a real physical printer, and forget to set it back to PDF_writer, then next time I will very likely
receive massive printouts from the physical printer when I run the program.
Is there a way to control the printer by command? I tried almost all related commands including output(p), but it doesn't really help.
Also in the printing window, there is an option called "graph size" (please see attached screenshot). Is there a way also to control that by commands?
Thank you all again.
Problem on saving chart as a pdf by programming.
Posted: Mon Aug 06, 2012 10:01 am
by EViews Gareth
Unfortunately not.
Re: Problem on saving chart as a pdf by programming.
Posted: Tue Aug 07, 2012 5:41 am
by Liu
Hi Gareth,
is there a way I can delay the program from processing for a period of time?
I noticed that the spawn command has such option. But I tested it and it's not delaying much as it should, or maybe it didn't delay at all.
is there a way I can tell eviews to "wait for 50 seconds" and then go to the next line of command?
Re: Problem on saving chart as a pdf by programming.
Posted: Mon Aug 26, 2013 8:04 am
by EViews Gareth
Sleep.
Since this thread has become alive again after a year of inactivity, I'll point out that EViews 8 offers native PDF printing.