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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.