Problem on saving chart as a pdf by programming.

For questions regarding programming in the EViews programming language.

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Problem on saving chart as a pdf by programming.

Postby startz » Wed Aug 01, 2012 9:23 am

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Problem on saving chart as a pdf by programming.

Postby EViews Gareth » Wed Aug 01, 2012 10:00 am

The disadvantage of a spool is if you want a separate pdf for each chart.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Problem on saving chart as a pdf by programming.

Postby startz » Wed Aug 01, 2012 10:12 am

True, but I think Acrobat Pro is willing to extract pages into separate files. Admittedly, a bit of a kludge.

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

Re: Problem on saving chart as a pdf by programming.

Postby Liu » Mon Aug 06, 2012 9:35 am

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.
Attachments
example.gif
example.gif (84.95 KiB) Viewed 5189 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Problem on saving chart as a pdf by programming.

Postby EViews Gareth » Mon Aug 06, 2012 10:01 am

Unfortunately not.

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

Re: Problem on saving chart as a pdf by programming.

Postby Liu » Tue Aug 07, 2012 5:41 am

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?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Problem on saving chart as a pdf by programming.

Postby EViews Gareth » Mon Aug 26, 2013 8:04 am

Sleep.


Since this thread has become alive again after a year of inactivity, I'll point out that EViews 8 offers native PDF printing.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest