BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Nathalie1
Obsidian | Level 7

Hello,

I would like to save the output of a result table in .png format so that I can then import it into a powerpoint. I searched, but couldn't find an answer. Can you help me ?

For the moment, I take screenshots of my results while for the graphs, a right click allows you to save the graph in .png.

Sincerely yours,

Nathalie

Here, is an example :

data TP.freqs1;
set TP.freqs1;
label grp = 'Groupe' num1 = 'Numérateur' num2 = 'Dénominateur' rapport = 'Pourcentage';
run;
	proc print data=TP.freqs1 noobs label;
where num1 ne .; 
var grp num1 num2 rapport;
run; 

Image1.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Example:

 

ods printer printer=png file="test.png";
proc print data=sashelp.class;
run;
ods printer close;
--
Paige Miller

View solution in original post

10 REPLIES 10
PaigeMiller
Diamond | Level 26

Example:

 

ods printer printer=png file="test.png";
proc print data=sashelp.class;
run;
ods printer close;
--
Paige Miller
Nathalie1
Obsidian | Level 7

Thank you very much.

There is a small point to improve, is it possible to remove "the SAS system" and the date?

Sincerely yours,

Nathalie

test.png

 

 

 

 

Nathalie1
Obsidian | Level 7

Thank you very much for your two responses, I obtain what I want.

SAS communities is wonderful.😊

Sincerely yours,

Nathalie

ODS printer printer=png file = "C:\Users\771\Pictures\test.png" ;
OPTIONS NODATE NONUMBER;
title;
    proc print data=sashelp.class;
run;
ods printer close;

test.png

Reeza
Super User
Also, you know that you can export straight to a PowerPoint file?
Nathalie1
Obsidian | Level 7

No, I don't know. I have to export my graphs and my tables in powerpoint, I am again a beginner (several years of illness) and I am alone to work in my team. In addition, I have to learn R for bioinformatics.🙄

Nathalie1
Obsidian | Level 7

Thank you for your help and the links. Is it possible to make an output HTML with tabs ?

Nathalie

PaigeMiller
Diamond | Level 26

@Reeza wrote:
Also, you know that you can export straight to a PowerPoint file?

Yes you can output directly to PowerPoint, but you are limited in how much can appear on one slide in PowerPoint, you don't have complete control. There was a recent BASUG talk on this, and there are a lot of drawbacks to sending output directly to PowerPoint. I personally have decided to not even consider that as an option.

--
Paige Miller
Reeza
Super User
True, but if you're planning for a PowerPoint in the end anyways, and you want to make it repeatable, using ODS seems to be a more efficient long run approach. All depends on the use case.

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!

From SAS Users blog
Want more? Visit our blog for more articles like these.
5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 10 replies
  • 631 views
  • 8 likes
  • 3 in conversation