The SAS Output Delivery System and reporting techniques

ODS RTF - switching between orientations is shrinking my page size!

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 16
Accepted Solution

ODS RTF - switching between orientations is shrinking my page size!

Hi all-

I have a series of proc reports that I'm outputting to an RTF file. Due to the size of the tables and the number of allowable pages, I need to toggle between portrait and landscape orientations. While the output reflects the change in orientation, it is also shrinking the page size by 1in each time. This makes for some strange and unusable output. Any thoughts?

Below is some sample code so you can try for yourself. Note that the first page is 8.5x11in, and the second page is 7.5x10in. If you run the code a second time, the first page will also shrink on subsequent output.

Thank you!

/********************************************************************************/

ods escapechar '^';
options pagesize=66;

ods rtf file= "new.rtf" startpage= no startpage=no ;

options orientation= portrait;
footnote j=left " This is where my footnote goes";

ods rtf text= "^S={fontsize=13pt font_weight=bold just=c} This is where my title goes";

proc report data=sashelp.class nowd;
where name in ('Alfred' 'Alice' 'Barbar');
column sex age name height weight;
run;

options orientation= landscape;
ods rtf startpage= now;

ods rtf text= "^S={fontsize=13pt font_weight=bold just=c} This is the second page";

proc report data=sashelp.class nowd;
where name in ('Alfred' 'Alice' 'Barbar');
column sex age name height weight;
run;

ods rtf close;


Accepted Solutions
Solution
‎07-20-2015 07:48 PM
SAS Super FREQ
Posts: 8,717

Re: ODS RTF - switching between orientations is shrinking my page size!

HI:

  I do not observe this behavior in SAS 9.4 either. My suggestion is that you open a track with Tech Support to see whether they can replicate your behavior using your version of SAS and your operating system.

cynthia

View solution in original post


All Replies
Grand Advisor
Posts: 10,204

Re: ODS RTF - switching between orientations is shrinking my page size!

I'm not seeing this behavior in SAS 9.2.

Are you by any chance using a style other than the SAS supplied RTF style?

Solution
‎07-20-2015 07:48 PM
SAS Super FREQ
Posts: 8,717

Re: ODS RTF - switching between orientations is shrinking my page size!

HI:

  I do not observe this behavior in SAS 9.4 either. My suggestion is that you open a track with Tech Support to see whether they can replicate your behavior using your version of SAS and your operating system.

cynthia

Occasional Contributor
Posts: 16

Re: ODS RTF - switching between orientations is shrinking my page size!

Thanks for the feedback. I'm using 9.3. I went ahead and submitted it to tech support.

Ballardw- the use of SAS supplied RTF style doesn't seem to affect it.

Occasional Contributor
Posts: 16

Re: ODS RTF - switching between orientations is shrinking my page size!

I  just wanted to follow up on this post in case someone else is having the same problem and searches the threads for help. I reached out to tech support and they said it was a defect in 9.3ts1m, but has been resolved in later releases and 9.4.

Thanks for your help!

Grand Advisor
Posts: 9,571

Re: ODS RTF - switching between orientations is shrinking my page size!

Or you could try :

options papersize=(8in 11in);

Occasional Contributor
Posts: 16

Re: ODS RTF - switching between orientations is shrinking my page size!

I definitely tried that, still had the same problem!

☑ This topic is SOLVED.

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

Discussion stats
  • 6 replies
  • 786 views
  • 0 likes
  • 4 in conversation