BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Which device (eg activex, java, etc) and options (eg what's the best way to control the size of the image) should I use with gplot to get a clear image in MS PowerPoint?
Any methodology that anyone can recommend would be appreciated.
I'm currently using SAS 9.1
.
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
The documentation on the use of device-based graphics:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/export-gsf.htm

recommends the CGMOF97L device. I have also had good luck with the ACTXIMG device, which creates a PNG file. The GIF and JPG devices might also suffice. In addition, I know some students who use ODS RTF to create their output and then cut and paste the image from Word into PowerPoint -- which works for onesies and twosies, but not for a lot for graph images. (They claimed the image was subjectively "better" using this technique, but I didn't see a big difference.)

For information about controlling image size, look in the documentation under GOPTIONS. Each device has a default size and aspect ratio. You can start with HSIZE and VSIZE GOPTIONS to alter the size:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gopdict-hsize.htm
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gopdict-vsize.htm

cynthia
barheat
Fluorite | Level 6
I have used GIF733 with success using the following setup.

filename grafout "&chart_filename";
goptions reset=all device=GIF733 gunit=pct ftitle=swissl htitle=5 ftext=swissl htext=3
hsize=18cm vsize=13.5cm display
gsfmode=replace gsfname=grafout; /* cback=&uss_background; */

Enter graphics clde here.

filename grafout clear;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1116 views
  • 0 likes
  • 3 in conversation