ODS RTF How to set different margins on each page of RTF document

Reply
SAS Employee
Posts: 1

ODS RTF How to set different margins on each page of RTF document

Hi,

In SAS 9.4 TS1M2 I try to set margins on a RTF document generated by an "ODS RTF" statement. Through the "OPTIONS" statement I can set these margins (MARGINLEFT etc...) but they apply to all pages of RTF file. What I want is to specify theses margins from page to page.

I read in this paper that you have to use STYLES :

http://www2.sas.com/proceedings/sugi29/125-29.pdf

However any method described in this document that I try (set margins with precise values or set margins to _undef_ special value) does not work. The only way I can do it is through styles but then I lose the papersize on the second page of my report.

Do I use the goog approach?

How to get wanted margins ?

Thanks and best regards.

Jean-Marie

Super User
Posts: 9,671

Re: ODS RTF How to set different margins on each page of RTF document

Try this one :

option topmargin=1cm orientation=portrait;
ods rtf file='c:\temp\xxx.rtf';
proc print data=sashelp.class ;run;
option topmargin=10cm orientation=landscape;
ods rtf ;
proc print data=sashelp.class ;run;
ods rtf close;


Xia Keshan

Ask a Question
Discussion stats
  • 1 reply
  • 340 views
  • 0 likes
  • 2 in conversation