BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am running a stored process via SAS Microsoft Add Ins in Powerpoint that generates about 50 slides, each containing a graph with a title.

The graphs appear fine in Powerpoint, but the title has become separate from the graph (which is not the case in the gif file generated) and appears to have the default powerpoint font, which is way too large.

An example of the code is given below.

When I run the stored process from Excel or Word, something similar happens.

Is there a way of keeping the title as part of the graph, as with the gif file generated?

Thanks for your help.

goptions reset=all device=gif;

ODS LISTING CLOSE;
ODS HTML CLOSE;
ODS HTML BODY="Body_file.html"
GPATH="&path"
PATH="&path";
title1 font=arial j=CENTER h = 2.5pct c = bib
"My Title";

code to generate grapg - eg proc gchart

quit;
ODS LISTING CLOSE;
ODS HTML CLOSE;
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
When you use the SAS Add-in to Office with Powerpoint as part of the BI Platform, Powerpoint will only "accept" SAS Report XML results from the stored process. Even if you have ODS HTML in your code, or you do an override for the &_ODSDEST reserved variable, when the results come back, SAS detects that the client application is PowerPoint and your results are turned into SASReport XML. I believe that your device of GIF will probably be changed to the device driver that is used for PowerPoint (probably PNG or ACTIVEX or JAVA driver -- I'm not sure).

There are some regular ODS options that can be used for non-stored process SAS/Graph and ODS jobs: they are the ODS USEGOPT statement and the GTITLE option on the ODS statement. However, I am not sure that either of those abilities are used by the SASReport XML that PowerPoint receives.

This is probably a question for Tech Support -- as they can look at your complete code and your PowerPoint settings and if they cannot help you get the title into the SAS/Graph image, then they can help you change the CSS style that is used with the Add-in and PowerPoint to make the title the size you want.

cynthia
GraphGuy
Meteorite | Level 14
I'm a couple of years late on this one, but maybe this info will be useful to people searching for info on similar questions...

dev=java and dev=activex do not support "gtitles" (titles as part of the graph) - I think in most situations, EG and STPs default to activex or java (or one of their variants).

Therefore, do everything you can to make sure you're using dev=gif or dev=png, and then also make sure you're using "gtitles" rather than "nogtitles" (gif and png support both gtitles and nogtitles).

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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