The SAS Output Delivery System and reporting techniques

ODS RTF TEXT= What code do I use to adjust the top margin of my text ?

Reply
N/A
Posts: 0

ODS RTF TEXT= What code do I use to adjust the top margin of my text ?

ods rtf text = "^S={font_size=14pt font_face='Times Roman' font_weight=bold just=l background=#FFFFFF}OR Time";

The top margin is quite wide. What code do I use to adjust this top margin?

Thanks,
S
SAS Super FREQ
Posts: 8,864

Re: ODS RTF TEXT= What code do I use to adjust the top margin of my text ?

Posted in reply to deleted_user
Hi:
If you are using SAS 9.1.3 or SAS 9.2, then (per this Tech Support note) you should be able to use the System Options to alter the RTF margins starting in SAS 9.1:
[pre]
options topmargin=.5in bottommargin=.5in;
[/pre]

http://support.sas.com/kb/5/468.html (the note is reporting that a problem with using options did not work in SAS 8.2, but was fixed in SAS 9.1)

If you are using SAS 8.2 or want to use a custom style template for changing margins, then this Tech Support note outlines the methods that you would use via style template:
http://support.sas.com/kb/24/033.html

Do remember that ODS RTF creates RTF control strings that are designed to work best with Microsoft Word. So if you are creating RTF output and using some other RTF viewer (OpenOffice, ClarisWorks, etc), then you may have to work with Tech Support if the RTF control strings for margins are not respected by those viewers.

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