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
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.