Spool - apply print mode to child spools option

For questions regarding programming in the EViews programming language.

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

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Spool - apply print mode to child spools option

Postby CrisisStudent » Tue Nov 24, 2020 10:15 am

Hi all,

the user dialog for saving spool has option "Apply print mode to child spools", but I dont see such option among the procedures options. Is there any?

Thanks,
CrisisStudent

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

Re: Spool - apply print mode to child spools option

Postby EViews Jason » Mon Nov 30, 2020 9:57 am

The mode is used to determine how page breaks are handled. From within EViews there are no page breaks, since the spool window is continuous. As of right now, page breaks can occur when saving and printing.

To which "procedures options" would you also like to add the mode to?

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Re: Spool - apply print mode to child spools option

Postby CrisisStudent » Mon Nov 30, 2020 2:36 pm

Hi Jason,

thanks for your reply. I understand how this is used - what I am lacking is the same option in programming language as is in GUI. What I need is to prin the spool into PDF such that the subspools are printed in continuous way, but the master spool is new page each object. In GUI I would chose to print each object on new page, but then uncheck the option "Apply print mode to child spools".

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

Re: Spool - apply print mode to child spools option

Postby EViews Jason » Wed Dec 02, 2020 6:09 pm

I see. I didn't completely understand your request.

We will add a new PDF option to the spool 'save' proc in the next patch. To use the new option, add either applychild to apply the print mode to the child spools or use -applychild to not apply the print mode to the child spool. If neither options are specified, 'apply print mode to child spool' will default to true.

Here are some examples:

Code: Select all

myspool.save(t=pdf, mode=i, applychild) test.pdf  'this is the equivalent of print mode to child spool being checked

or

Code: Select all

myspool.save(t=pdf, mode=c, -applychild) test.pdf  'this is the equivalent of print mode to child spool NOT being checked

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Re: Spool - apply print mode to child spools option

Postby CrisisStudent » Thu Dec 03, 2020 6:39 am

Thanks, thats great. Can you just clarify one thing - this affects all versions of Eviews or just the newest one? My firm has Eviews 10 (Nov 2017 build). Thanks!

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

Re: Spool - apply print mode to child spools option

Postby EViews Gareth » Thu Dec 03, 2020 7:14 am

EViews 11 and 12 only
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 36 guests