BookmarkSubscribeRSS Feed
Bill
Quartz | Level 8

Building a 4 panel powerpoint slide from proc greplay using the png driver ...

I find the resolution of the graphs to be poor.  Documentation on the SAS site suggests adding the image_dpi option to the ods listing statement, but I can't see any improvement.

Does anyone have any tips to improve resolution? Please and thank you.

Basic code below:

ods listing image_dpi=600;                                                                                                                                                                      


goptions reset=all                                                                                                                                                                              

         nodisplay                                                                                                                                                                              

         dev=png                                                                                                                                                                                

         hsize=5.25in                                                                                                                                                                           

         vsize=4.45in                                                                                                                                                                           

;                                                                                                                                                                                               

                                                                                                                                                                                              

proc shewhart data=chrglossyldall2;                                                                                                                                                             

by process_op_cd notsorted;                                                                                                                                                                     

format wkmnth monyy5.;                                                                                                                                                                          

boxchart (TotalScrapY ToolScrapY ExitCoilScrapY QScrapY)*wkmnth;                                                                                                                                

;run;                                                                                                                                                                                           

                                                                                                                                                                                         

goptions reset=all                                                                                                                                                                              

       display                                                                                                                                                                                

         dev=png;*                                                                                                                                                                              

         hsize=10.5in                                                                                                                                                                           

         vsize=7.9in  ;                                                                                                                                                                          

                                                                                                                                                                                               

ods _all_ close;                                                                                                                                                                                


ods listing image_dpi=600;                                                                                                                                                                      

                                                                                                                                                                                              

ods powerpoint file='c:\temp\PCR04.pptx';                                                                                                                                                       

                                                                                                                                                                                             

proc greplay nofs;                                                                                                                                                                              

igout=gseg;                                                                                                                                                                                     

tc=template.templt;                                                                                                                                                                             

template=h2v2hdr;                                                                                                                                                                               

treplay 2:1 3:2 4:3 5:4 name='PCR04';                                                                                                                                                           

run;                                                                                                                                                                                            

quit;                                                                                                                                                                                           

ods _all_ close;                         

5 REPLIES 5
DanH_sas
SAS Super FREQ

Can you post a screenshot of your current output?

Bill
Quartz | Level 8

Dan, image should be attached here somewhere. I tried PGStats suggestion and found that it made an improvement at 600dpi - but it still doesn't measure up to sasprtc on pdf.

PGStats
Opal | Level 21

Seems like this forum is crippled to the point of not allowing attachments of any kind anymore.

PG
Cynthia_sas
SAS Super FREQ

Hi: I think that the images are disabled temporarily because of the spamming issue that was happening.

cynthia

PGStats
Opal | Level 21

LISTING and POWERPOINT are two distinct ODS destinations. Try setting the image_dpi= option in the ods powerpoint statement.

PG

PG

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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