Microsoft PowerPoint might not correctly display graphs generated from SAS® Enterprise Guide®


Graphs generated from SAS Enterprise Guide might not be displayed correctly in Microsoft PowerPoint.

For example, you might encounter this issue if you complete steps similar to the following:

  1. Create a graph by executing the following SAS code within SAS Enterprise Guide and redirecting the output to a Microsoft PowerPoint file:
ods powerpoint file="C:\temp\test.pptx";
ods graphics on;
proc gchart data=sashelp.class; vbar age; run;
ods graphics off;
ods powerpoint close;

The file is correctly created.

  1. If you open the PowerPoint file with Microsoft Office 365, then the graph is correctly displayed. But if you open the PowerPoint file in Microsoft Office Professional Plus 2013, then the graph might not be displayed at all. The following display shows a Microsoft PowerPoint file that contains a graph created with SAS Enterprise Guide and opened with Microsoft Office Professional Plus 2013.

This problem mainly occurs because SAS Enterprise Guide executes the DEV=SVG option by default before running the code in programs.

To circumvent this problem, change the default DEV option from SVG to PNG by performing the following steps:

  1. Open SAS Enterprise Guide.
  2. Select Tools ► Options ► SAS Programs.
  3. Select the Insert custom SAS code before submitted code option and add this option: OPTIONS DEV=PNG;