<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exporting and saving SVG file from PROC SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875296#M23784</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a panel plot using PROC SGPANEL and want to insert it as scalable vector graphic into a Microsoft Word file for a research paper. I initially exported and saved it as a svg file using the ODS&amp;nbsp;imagefmt=svg statement. The image was saved as an HTML file, and looked great when I opened and viewed it in a web browser. However, when I tried to insert it into the Word document, I did not see the file in the folder I saved it to when I tried to find it using the Word Insert function. I found that I can also save the image as an EMF file and insert that into Word. If so, I am having trouble exporting and saving the image from PROC SGPANEL using the&amp;nbsp;outputfmt=emf option. I am able to get the code to run without errors, but it is not outputting and saving the image. This is the code I ran:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods graphics on/reset outputfmt=emf;
ods listing file='sas_directory_path/imagename.emf';
ods graphics / noborder;
title1 height=1.5 justify=center "Title" ;
proc sgpanel data=dataset noautolegend;
	panelby label / layout=rowlattice onepanel noheaderborder sort=data 
                              novarname HEADERBACKCOLOR=white HEADERATTRS=(Size=12 Weight=Bold) proportional;
  highlow x=input low=min high=max/ highcap=none lowcap=none type=bar fillattrs=(color=lightblue )
                     lineattrs=(color=darkgray thickness=1) barwidth=.5;
 rowaxis label="Stats By Model"  grid labelattrs=(size=12 weight=bold) ;
  	scatter x=input y=mean/ markerattrs=(color=darkblue size=4 symbol=diamondfilled); 
	colaxis  display=(nolabel) discreteorder=data;
run;
title1 ;
ods output 'sas_directory_path/imagename.emf';
ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To insert the SAS generated image into Word, I can only save the image as an EMF file, correct? If not, what is the best way to save an svg image that can be inserted into Microsoft Word?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 17:14:39 GMT</pubDate>
    <dc:creator>GuyTreepwood</dc:creator>
    <dc:date>2023-05-11T17:14:39Z</dc:date>
    <item>
      <title>Exporting and saving SVG file from PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875296#M23784</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a panel plot using PROC SGPANEL and want to insert it as scalable vector graphic into a Microsoft Word file for a research paper. I initially exported and saved it as a svg file using the ODS&amp;nbsp;imagefmt=svg statement. The image was saved as an HTML file, and looked great when I opened and viewed it in a web browser. However, when I tried to insert it into the Word document, I did not see the file in the folder I saved it to when I tried to find it using the Word Insert function. I found that I can also save the image as an EMF file and insert that into Word. If so, I am having trouble exporting and saving the image from PROC SGPANEL using the&amp;nbsp;outputfmt=emf option. I am able to get the code to run without errors, but it is not outputting and saving the image. This is the code I ran:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods graphics on/reset outputfmt=emf;
ods listing file='sas_directory_path/imagename.emf';
ods graphics / noborder;
title1 height=1.5 justify=center "Title" ;
proc sgpanel data=dataset noautolegend;
	panelby label / layout=rowlattice onepanel noheaderborder sort=data 
                              novarname HEADERBACKCOLOR=white HEADERATTRS=(Size=12 Weight=Bold) proportional;
  highlow x=input low=min high=max/ highcap=none lowcap=none type=bar fillattrs=(color=lightblue )
                     lineattrs=(color=darkgray thickness=1) barwidth=.5;
 rowaxis label="Stats By Model"  grid labelattrs=(size=12 weight=bold) ;
  	scatter x=input y=mean/ markerattrs=(color=darkblue size=4 symbol=diamondfilled); 
	colaxis  display=(nolabel) discreteorder=data;
run;
title1 ;
ods output 'sas_directory_path/imagename.emf';
ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To insert the SAS generated image into Word, I can only save the image as an EMF file, correct? If not, what is the best way to save an svg image that can be inserted into Microsoft Word?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 17:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875296#M23784</guid>
      <dc:creator>GuyTreepwood</dc:creator>
      <dc:date>2023-05-11T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and saving SVG file from PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875319#M23785</link>
      <description>&lt;P&gt;If you have SAS version 9.4m7 or greater, the ODS WORD destination supports embedded SVG output. If you have that version available, I would generate the output using ODS WORD with OUTPUTFMT=SVG, then see if you can copy it from that document to your research paper. Let me know if that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 18:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875319#M23785</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-05-11T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and saving SVG file from PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875412#M23786</link>
      <description>&lt;P&gt;After changing the suffix to .docx in the file= statement, it worked! I was able to successfully paste a svg image to a Word document.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 09:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/875412#M23786</guid>
      <dc:creator>GuyTreepwood</dc:creator>
      <dc:date>2023-05-12T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and saving SVG file from PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/920358#M24474</link>
      <description>I cannot do that, bro. Please help me in inbox please</description>
      <pubDate>Fri, 15 Mar 2024 02:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Exporting-and-saving-SVG-file-from-PROC-SGPANEL/m-p/920358#M24474</guid>
      <dc:creator>thiennguyen</dc:creator>
      <dc:date>2024-03-15T02:07:41Z</dc:date>
    </item>
  </channel>
</rss>

