<?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 Re: Exporting SAS Graph to Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2998#M1346</link>
    <description>Hi, Bill:&lt;BR /&gt;
  Personally, I like the look of device=actximg or device=png instead of GIF or JPEG. It's one of those "it depends" recommendations, though -- what looks good to me may not look as you want. I almost always start with actximg and then try the others. You can find the list of device drivers in the SAS/Graph documentation.&lt;BR /&gt;
cynthia&lt;BR /&gt;
  &lt;BR /&gt;
ps...I have to add this comment...you said "With this direct to excel export..." and as an instructor, I'm wired to point out that this method is NOT an export in the PROC EXPORT/Libname engine meaning of "export". &lt;BR /&gt;
   &lt;BR /&gt;
Instead, the MSOFFICE2K destination produces an HTML file that Excel "knows" how to open because Microsoft has allowed Word and Excel to read HTML files since Office97, when you could read HTML 3.2 files with Office. Then, starting in Office 2000, Microsoft came up with their own "flavor" of HTML. That's why the name of the tagset template that writes the HTML is MSOFFICE2K. &lt;BR /&gt;
 &lt;BR /&gt;
If you open your ODS result file in Notepad, you will see the HTML tags that ODS has written around your procedure output.</description>
    <pubDate>Sat, 05 May 2007 03:44:33 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-05-05T03:44:33Z</dc:date>
    <item>
      <title>Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2994#M1342</link>
      <description>SAS text can easily be exported to excel via ods html.  Is there a trick as simple as what I'm trying to do below for SAS Graph?  (Obviously this one doesn't work!)&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Bill&lt;BR /&gt;
&lt;BR /&gt;
                                                         &lt;BR /&gt;
ods  html file="\\MOFtp\MainFrameFtp\EsaDown\TestGrf.xls";                                                                                                                                          &lt;BR /&gt;
                                                                                                                                                                                                    &lt;BR /&gt;
goptions dev=jpeg;                                                                                                                                                                                  &lt;BR /&gt;
proc gtestit picture=1;                                                                                                                                                                             &lt;BR /&gt;
run;                                                                                                                                                                                                &lt;BR /&gt;
quit;                                                                                                                                                                                               &lt;BR /&gt;
                                                                                                                                                                                                    &lt;BR /&gt;
ods html close;

spelling correction by Bill - 07May2007&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Bill</description>
      <pubDate>Fri, 04 May 2007 16:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2994#M1342</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2007-05-04T16:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2995#M1343</link>
      <description>Try using the MSOffice2K destination if you are running SAS 9. &lt;BR /&gt;
&lt;BR /&gt;
ods msoffice2k file="c:\temp.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=sashelp.class;&lt;BR /&gt;
vbar height;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
ods msoffice2k close;</description>
      <pubDate>Fri, 04 May 2007 17:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2995#M1343</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2007-05-04T17:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2996#M1344</link>
      <description>You may also discover if you are trying to write to a web server directly, that you need to use some form of PATH/GPATH/URL= options:&lt;BR /&gt;
&lt;BR /&gt;
For example, let's say that your web server is &lt;A href="http://www.wombat.com" target="_blank"&gt;www.wombat.com&lt;/A&gt; and your&lt;BR /&gt;
reports are stored in the reptdir directory:&lt;BR /&gt;
&lt;A href="http://www.wombat.com/reptdir/" target="_blank"&gt;www.wombat.com/reptdir/&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
 You may want to make a "mirror" directory structure on your local machine and do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods msoffice2k path='c:\reptdir' (url=none)&lt;BR /&gt;
                      gpath='c:\reptdir' (url=none)&lt;BR /&gt;
                      file="temp.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=sashelp.class;&lt;BR /&gt;
vbar height;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
ods msoffice2k close; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
if you are writing directly to a web server or mapped drive, you may have to play around with the URL= option for the graph and gpath to get the location for the &amp;lt;IMG&amp;gt; tag to be the right web server URL.&lt;BR /&gt;
&lt;BR /&gt;
for example, you may want something like this for the &amp;lt;IMG&amp;gt; tag: &lt;BR /&gt;
[pre]&lt;BR /&gt;
ods msoffice2k path='c:\reptdir' (url=none)&lt;BR /&gt;
                      gpath='c:\reptdir' (url="http://www.wombat.com/reptdir/")&lt;BR /&gt;
                      file="temp.xls";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
In which case, the &amp;lt;IMG&amp;gt; tag would be built with the following SRC=&lt;BR /&gt;
[pre]&lt;BR /&gt;
src="http://www.wombat.com/reptdir/gchart.gif"&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
You can generally tell that you need to use some combo of PATH/GPATH if you see a red 'X' in the browser or in Excel.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 04 May 2007 18:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2996#M1344</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-05-04T18:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2997#M1345</link>
      <description>The second method by Cynthia works well.  Can you direct me to any driver choices other than gif or jpeg?&lt;BR /&gt;
I've been using sasprtc to pdf with good results.  With this direct to excel export, I'd like to retain that level of resolution.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Bill</description>
      <pubDate>Fri, 04 May 2007 20:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2997#M1345</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2007-05-04T20:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2998#M1346</link>
      <description>Hi, Bill:&lt;BR /&gt;
  Personally, I like the look of device=actximg or device=png instead of GIF or JPEG. It's one of those "it depends" recommendations, though -- what looks good to me may not look as you want. I almost always start with actximg and then try the others. You can find the list of device drivers in the SAS/Graph documentation.&lt;BR /&gt;
cynthia&lt;BR /&gt;
  &lt;BR /&gt;
ps...I have to add this comment...you said "With this direct to excel export..." and as an instructor, I'm wired to point out that this method is NOT an export in the PROC EXPORT/Libname engine meaning of "export". &lt;BR /&gt;
   &lt;BR /&gt;
Instead, the MSOFFICE2K destination produces an HTML file that Excel "knows" how to open because Microsoft has allowed Word and Excel to read HTML files since Office97, when you could read HTML 3.2 files with Office. Then, starting in Office 2000, Microsoft came up with their own "flavor" of HTML. That's why the name of the tagset template that writes the HTML is MSOFFICE2K. &lt;BR /&gt;
 &lt;BR /&gt;
If you open your ODS result file in Notepad, you will see the HTML tags that ODS has written around your procedure output.</description>
      <pubDate>Sat, 05 May 2007 03:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2998#M1346</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-05-05T03:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2999#M1347</link>
      <description>Thanks Cynthia - esp for the teacher admonition!&lt;BR /&gt;
&lt;BR /&gt;
one more question on this one  ...  I'd like title2 below to look like the link that it is in the excel sheet.  I think I need to surround it with some html code.  The way it shows up now I need to click on it a few times in excel and then it gets the link look.   This is in sas v8.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Bill&lt;BR /&gt;
&lt;BR /&gt;
filename xl ftp "/MainFrameFtp/EsaDown/SlabInvRpt.xls"                                                                                                                                   &lt;BR /&gt;
    host='xxxxx'                                                                                                                                                                 &lt;BR /&gt;
        user='xxxx'                                                                                                                                                                               &lt;BR /&gt;
        pass='xxx'                                                                                                                                                                                &lt;BR /&gt;
        debug                                                                                                                                                                                        &lt;BR /&gt;
        recfm=s;                                                                                                                                                                                     &lt;BR /&gt;
                                                                                                                                                                                                     &lt;BR /&gt;
                                                                                                                                                                                &lt;BR /&gt;
ods html file=xl trantab=ASCII style=mytheme;  &lt;BR /&gt;
&lt;BR /&gt;
title2 h=1 "\\MOFtp\MainFrameFtp\EsaDown\SlabInvGrf.pdf";

Bill&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Bill</description>
      <pubDate>Mon, 07 May 2007 18:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/2999#M1347</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2007-05-07T18:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS Graph to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/3000#M1348</link>
      <description>Bill:&lt;BR /&gt;
  I no longer have SAS 8 in order to test, but try this. It works for me in SAS 9 and I thought it would work in 8, as well.&lt;BR /&gt;
  &lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.msoffice2k file='c:\temp\testlink.xls';&lt;BR /&gt;
title1 'the title';&lt;BR /&gt;
title2 "&amp;lt;div&amp;gt;&amp;lt;a href='Demo02.pdf'&amp;gt;Click This For Printable PDF&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;";&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.msoffice2k close;&lt;BR /&gt;
 [/pre]&lt;BR /&gt;
I already had a file called Demo02.pdf in my c:\temp directory, but you get the idea. In my Excel (2003), the text "Click This For Printable PDF" showed up underlined like a hyperlink and then when I hit CTRL and hovered over the link, a CTRL + click loaded the PDF into Acrobat Reader. Since title2 is effectively turned into a hyperlink, in my Excel, it no longer has the title font characteristics, but instead has the link characteristics from Excel (I think). &lt;BR /&gt;
  &lt;BR /&gt;
 I coded a complete, syntactically correct HTML anchor tag. You may find that you need file:// or http:// in the href attribute -- and I can never remember whether a machine-name/network-path like the one you show is OK in an HREF. I think it is OK, but the link will only work if that network path is available or something like that. &lt;BR /&gt;
 &lt;BR /&gt;
I think Tech Support may be the only folks who still have SAS 8 for testing. If you still run into problems with the hyperlink in the title, you'll need to enlist their help.&lt;BR /&gt;
 &lt;BR /&gt;
Good luck,&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 May 2007 19:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-SAS-Graph-to-Excel/m-p/3000#M1348</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-05-07T19:20:24Z</dc:date>
    </item>
  </channel>
</rss>

