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-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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