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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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