BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Gerd_64
Fluorite | Level 6

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

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

View solution in original post

2 REPLIES 2
DanH_sas
SAS Super FREQ

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

Gerd_64
Fluorite | Level 6

Thank's very much. Now it works correct ! 🙂

 

Best regards,

 

Gerd

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3455 views
  • 1 like
  • 2 in conversation