Hi,
we have a problem with setting the line thickness of ODS graphics for destination RTF.
Using the following program we get figures with the correct thick lines for HEIGHT for destinations LISTING and PDF, but it is not possible to set the line thickness for destination RTF.
proc template; define statgraph test; begingraph; layout overlay; seriesplot x=AGE y=HEIGHT / lineattrs=(thickness=10px color=purple pattern=20) ; seriesplot x=AGE y=WEIGHT / lineattrs=(thickness=2px color=blue pattern=1 ) ; endlayout; endgraph; end; run; ods graphics on / noborder reset=all width=16.5cm height=14.8cm imagename="Figure"; ods listing gpath="h:\weist" image_dpi=300; ods pdf file="h:\weist\test1.pdf" style=listing; ods rtf file="h:\weist\test1.rtf" style=listing; proc sgrender data=sashelp.class template=test; run; ods rtf close; ods pdf close; ods listing close; ods graphics off;
Has anyone a suggestion what's the problem ?
The default graphics output format for RTF is EMFPlus, which is a vector-based format. Currently, there are issues rendering wide dashed lines in that format. To work around this issue, you can set the OUTPUTFMT on the ODS GRAPHICS statement to PNG to have it rendered as an image embedded into the RTF document. Your lines will then appear at the expected width.
Hope this helps!
Dan
The default graphics output format for RTF is EMFPlus, which is a vector-based format. Currently, there are issues rendering wide dashed lines in that format. To work around this issue, you can set the OUTPUTFMT on the ODS GRAPHICS statement to PNG to have it rendered as an image embedded into the RTF document. Your lines will then appear at the expected width.
Hope this helps!
Dan
Thank's very much. Now it works correct ! 🙂
Best regards,
Gerd
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 16. 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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: