The SAS Output Delivery System and reporting techniques

Does the portrait and landscape can work in the same rtf?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

Does the portrait and landscape can work in the same rtf?

Hi:

    I hope that the first print process output to RTF is portrait. And the second is landscape. But it doesn't work.

ods rtf file='D:\temp.rtf' bodytitle startpage=yes;

options orientation=portrait;
proc print data=sashelp.class;
run;

options orientation=landscape;
proc print data=sashelp.class;
run;

ods rtf close;


Accepted Solutions
Solution
‎08-30-2011 06:47 AM
Super Contributor
Posts: 273

Re: Does the portrait and landscape can work in the same rtf?

Indicate when you skip to a new page

options orientation=portrait;

ods rtf file='D:\temp\mixedorientation.rtf' bodytitle startpage=yes;

proc print data=sashelp.class;

run;

options orientation=landscape;

ods rtf startpage=yes;

proc print data=sashelp.class;

run;

ods rtf close;

be also carefull to the fact that an orientation remains in action outside

so i  always indicate my choice before asking  a page production

except for pdf where you may only have one single orientation for a document

(maybe this is possibly  changed in 9.3)

Andre

View solution in original post


All Replies
Solution
‎08-30-2011 06:47 AM
Super Contributor
Posts: 273

Re: Does the portrait and landscape can work in the same rtf?

Indicate when you skip to a new page

options orientation=portrait;

ods rtf file='D:\temp\mixedorientation.rtf' bodytitle startpage=yes;

proc print data=sashelp.class;

run;

options orientation=landscape;

ods rtf startpage=yes;

proc print data=sashelp.class;

run;

ods rtf close;

be also carefull to the fact that an orientation remains in action outside

so i  always indicate my choice before asking  a page production

except for pdf where you may only have one single orientation for a document

(maybe this is possibly  changed in 9.3)

Andre

Occasional Contributor
Posts: 15

Re: Does the portrait and landscape can work in the same rtf?

Thanks! It's a good solution.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 308 views
  • 2 likes
  • 2 in conversation