BookmarkSubscribeRSS Feed
fengyuwuzu
Pyrite | Level 9

I used the option below to control the size of the chart in the RTF file, but in the RTF file the title is not complete. In the SAS results wondow, however, the title is complete.

 

ods graphics on / 
      width=3.25in border=off;

 

This is the image in the RTF file:

Capture1.JPG

 

This is from the SAS results window:

 

Capture1.JPG

4 REPLIES 4
ballardw
Super User

You show no details on how the graph was created so here are some guesses:

The default sytle for ODS RTF is different than for the ODS HTML shown in the Results. The title font can be quite a bit larger and does not fit into the space availbe for the title in the method you used to create the graph. Try specifying the same ODS STYLE used by your results window with the ODS RTF statement.

 

Options specified on the Title overflow the allowed space for the title;

 

 

Cynthia_sas
Diamond | Level 26
And, in addition to BallardW's comments, the options in HTML and RTF might be different, as far as the GTITLE, NOGTITLE option which tells ODS whether the title is under the control of the graphics image (and thus, inside the image) or is under the control of the the ODS destination (and thus, sitting outside of the image).
http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p1vvsv8ucnjzjnn1wq5w...

cynthia
fengyuwuzu
Pyrite | Level 9

Thank you for both replies.

I ended up with ODS PDF for a fast solution. I will look into the real solution in RTF

 

ballardw
Super User

If ODS PDF solves the problem it may well be the active style as the PDF style default is different from both HTML and RTF.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 4 replies
  • 1565 views
  • 0 likes
  • 3 in conversation