BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Recep
Quartz | Level 8

Hello there,

 

I'm having an issue after I produce a graph, such as via PROC SGPLOT, and try to copy it from SAS and paste it to Mcrosoft Office products. The resoulution of the graph is great when I see it within SAS via output window but when I right-click on the graph in the SAS output window, copy and paste it to Word the picture is way less crispy compared to how I see it in SAS.

Is there a better way to copy and paste graphs from SAS to MS Office products?

 

Thanks a lot in advance,

 

Recep 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

You can also output directly to Word which is useful.

 

ods graphics / imagefmt=png height=5in width=7in;
ods rtf file='/folders/myfolders/mysample.rtf' bodytitle image_dpi=300 
    style=journal;
title 'my sample graph';

proc sgplot data=sashelp.class;
    scatter x=height y=weight / group=sex;
run;

ods rtf close;

View solution in original post

5 REPLIES 5
Reeza
Super User

Change the device/file type. 

 

SGPLOT should create PNG files. Try inserting the PNG files directly into your Office document. 

DanH_sas
SAS Super FREQ

Also make sure you are creating them to the size you want in your office document. If you are growing/shrinking them, the image interpolation might impact the image quality.

Recep
Quartz | Level 8
Thanks Dan!
Reeza
Super User

You can also output directly to Word which is useful.

 

ods graphics / imagefmt=png height=5in width=7in;
ods rtf file='/folders/myfolders/mysample.rtf' bodytitle image_dpi=300 
    style=journal;
title 'my sample graph';

proc sgplot data=sashelp.class;
    scatter x=height y=weight / group=sex;
run;

ods rtf close;
Recep
Quartz | Level 8
Thanks Reeza, this significantly improves the image quality!

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