<?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 SAS Add-In Office Excel + Stored Process : specify the filename of the worksheet in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-Add-In-Office-Excel-Stored-Process-specify-the-filename-of/m-p/886401#M2772</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our users are using Add-in Office Excel to run a Store Process and generate a dashboard in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running the STP, user is prompted to choose between storing the result in a new worksheet or use the current one and specify the cell to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No matter which option you choose, Excel open a new worksheet to display the result and the file is always named Main.xlsx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the start of our STP where we specify the name wanted :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%global _odsdest _odsstyle _odsstylesheet;&lt;/P&gt;
&lt;P&gt;%let _odsdest=excel;&lt;BR /&gt;%let _odsstyle=sasweb;&lt;BR /&gt;%let _odsstylesheet=;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;rc = stpsrv_header('Content-type','application/vnd.ms-excel;');&lt;BR /&gt;rc = stpsrv_header('Content-disposition','attachment; filename=BilanDesLits.xlsx');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;*ProcessBody;&lt;BR /&gt;%stpbegin;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's wrong ? Is there another option to set the filename ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 12:25:45 GMT</pubDate>
    <dc:creator>CHUNantes</dc:creator>
    <dc:date>2023-07-26T12:25:45Z</dc:date>
    <item>
      <title>SAS Add-In Office Excel + Stored Process : specify the filename of the worksheet</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-Add-In-Office-Excel-Stored-Process-specify-the-filename-of/m-p/886401#M2772</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our users are using Add-in Office Excel to run a Store Process and generate a dashboard in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running the STP, user is prompted to choose between storing the result in a new worksheet or use the current one and specify the cell to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No matter which option you choose, Excel open a new worksheet to display the result and the file is always named Main.xlsx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the start of our STP where we specify the name wanted :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%global _odsdest _odsstyle _odsstylesheet;&lt;/P&gt;
&lt;P&gt;%let _odsdest=excel;&lt;BR /&gt;%let _odsstyle=sasweb;&lt;BR /&gt;%let _odsstylesheet=;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;rc = stpsrv_header('Content-type','application/vnd.ms-excel;');&lt;BR /&gt;rc = stpsrv_header('Content-disposition','attachment; filename=BilanDesLits.xlsx');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;*ProcessBody;&lt;BR /&gt;%stpbegin;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's wrong ? Is there another option to set the filename ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-Add-In-Office-Excel-Stored-Process-specify-the-filename-of/m-p/886401#M2772</guid>
      <dc:creator>CHUNantes</dc:creator>
      <dc:date>2023-07-26T12:25:45Z</dc:date>
    </item>
  </channel>
</rss>

