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

I am using GTL to define a custom graph that I render into a PDF.  Now I need to write a memo in MSWord, and I want to embed one of the graphs in the document.  It seemed natural to me to grab the .png file that SAS created and embed it in my Word document, since Word is good at that.  But although my PDF contains a graph that is formatted with a journal style (which is greyscale), the .png file is very colorful.

Any ideas how to get the style to apply to the .png?


(That's not my actual goal.  My goal is to embed a graph in a Word document, the way ODS embedded my graphs in a PDF.  If you have a way to do that that will use the journal style, I'm happy to have your reply as well.)

ods graphics on / width=10in height=7.5in border=off antialiasmax=10000 discretemax=10000 imagename="&imagefn";    

ods pdf style=journal file="&PDFOutFile" dpi=200 bookmarkgen=no ;    

options nodate;    

proc sgrender data=TimeLine template=ImbalancePlot;        

   run;    

ods pdf close;    

ods graphics off;

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

Use STYLE=JOURNAL on your ODS RTF or ODS LISTING destination statements.

View solution in original post

2 REPLIES 2
Jay54
Meteorite | Level 14

Use STYLE=JOURNAL on your ODS RTF or ODS LISTING destination statements.

jdmarino
Fluorite | Level 6

I don't have ODS RTF or ODS LISTING statements, but I'll add them and see what happens.

Edit:

I removed ODS PDF and added

    ods listing style=journal image_dpi=200 ;

and it worked.

Sanjay: can you explain why "ODS PDF style=journal" creates a color .png file while ODS LISTING style=journal" creates a b&w .png file?

And can anyone explain why cut & paste don't work on these forums?? 

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
  • 2 replies
  • 945 views
  • 0 likes
  • 2 in conversation