Hi all,
I'd like to have all text, tables and charts left-aligned in an rtf file created with SAS (9.4M2 on Windows) ods tagsets.rtf. Using 'options nocenter;' all text aligned left as desired, but charts rendered using proc sgplot or proc gchart are still centered horizontally. How can I have the charts left-aligned in the rtf output?
Thanks for your help!
Here's my code:
options nocenter;
goptions device=ACTXIMG;
ods tagsets.rtf file='c:\Test-Left-Justify.rtf';
ods html file='c:\Test-Left-Justify.html';
title Titletext left-adjusted;
proc sgplot data=sashelp.cars;
vbar cylinders;
run;
proc gchart data=sashelp.cars;
vbar cylinders;
run;
proc tabulate data=sashelp.cars;
class make cylinders;
table make, cylinders ;
run;
ods html close;
ods tagsets.rtf close;
Hi
Seems like you can overcome this by creating your own style.
See the code sample below for creating the new style
ods path
(prepend) work.myStuff (update)
;
proc template;
define style rtf_gleft;
parent=styles.rtf;
class Graph /
just=left
;
end;
run;
ods tagsets.rtf file='c:\temp\Test-Left-Justify.rtf' style=rtf_gleft;
Might be a bug, since the Options NOCENTER shoud take care of that.
Bruno
Hi
Seems like you can overcome this by creating your own style.
See the code sample below for creating the new style
ods path
(prepend) work.myStuff (update)
;
proc template;
define style rtf_gleft;
parent=styles.rtf;
class Graph /
just=left
;
end;
run;
ods tagsets.rtf file='c:\temp\Test-Left-Justify.rtf' style=rtf_gleft;
Might be a bug, since the Options NOCENTER shoud take care of that.
Bruno
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.