<?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: ODS _webout ensuring I get the correct file format in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890811#M43547</link>
    <description>&lt;P&gt;Keep in mind that modern Edge uses the Chromium engine so same as Chrome. That may/may not be relevant but, im general, Chrome and Edge should work mostly the same. Same extensions work in both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have an ancient version of Edge, that would be an issue. Check file associations as well. Remove IE if possible. That should be doable depending on your version of Windows.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 15:51:53 GMT</pubDate>
    <dc:creator>AlanC</dc:creator>
    <dc:date>2023-08-24T15:51:53Z</dc:date>
    <item>
      <title>ODS _webout ensuring I get the correct file format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890659#M43544</link>
      <description>&lt;P&gt;I have a web application which uses _webout as the ods destination and the procs return an xlsx file. I have the following application headers:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;data _null_;
rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
rc = stpsrv_header('Content-disposition','attachment; filename=SomeReport.xlsx');
run;&lt;/PRE&gt;
&lt;P&gt;When I call the stored proc from Edge, what happens is that the file download dialogue will appear like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASAlex101_0-1692822317499.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86968iB961456CB8DD4C50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASAlex101_0-1692822317499.png" alt="SASAlex101_0-1692822317499.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However what I'd like is for the browser to download the file automatically using the flyout menu like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASAlex101_1-1692822659485.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86969iFAA0F9778201DF72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASAlex101_1-1692822659485.png" alt="SASAlex101_1-1692822659485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Through research, it may appear that the header's are incorrect and/or the stored proc is not returning the (recognizable)&amp;nbsp;binary content of the xlsx file. Is this true? The file I'm getting is an excel file. I open it and it works fine. Where in the stored proc would I ensure the binary content is valid and recognizable as an xlsx? is it something I set in the SP targets wizard?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've ruled out the java script in the webpage code as I can run the hyperlink of the stored process directly in my browser without javascript to test reports and it results in the same behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 20:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890659#M43544</guid>
      <dc:creator>SASAlex101</dc:creator>
      <dc:date>2023-08-23T20:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODS _webout ensuring I get the correct file format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890665#M43545</link>
      <description>&lt;P&gt;I would think that is browser behavior, so you'd have to see how Edge decides what to do with a file.&amp;nbsp; From this page, it looks like users can configure their browser download options:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://onlinecomputertips.com/support-categories/software/edge-download-options/" target="_blank" rel="noopener"&gt;https://onlinecomputertips.com/support-categories/software/edge-download-options/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For downloading Excel files, I use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rc = stpsrv_header('Content-type','application/vnd.ms-excel');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you might try that and see if it makes Edge handle it differently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use that an Edge, I get a little download popup:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edge.PNG" style="width: 360px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86974i0064E5128A0C4E5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edge.PNG" alt="Edge.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note your first picture says it's from internet explorer, not Edge.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 21:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890665#M43545</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-23T21:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS _webout ensuring I get the correct file format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890768#M43546</link>
      <description>&lt;P&gt;Wow that's weird. I am using edge, but for some reason the popup is from IE. I didn't notice that.&amp;nbsp;&lt;BR /&gt;Turned out that both content type headers work in Chrome - I get the flyout menu downloaded as an excel file. but not Edge. Perhaps the Edge I'm working with is trash.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marking solved as you're right; it's simply browser behavior.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890768#M43546</guid>
      <dc:creator>SASAlex101</dc:creator>
      <dc:date>2023-08-24T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS _webout ensuring I get the correct file format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890811#M43547</link>
      <description>&lt;P&gt;Keep in mind that modern Edge uses the Chromium engine so same as Chrome. That may/may not be relevant but, im general, Chrome and Edge should work mostly the same. Same extensions work in both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have an ancient version of Edge, that would be an issue. Check file associations as well. Remove IE if possible. That should be doable depending on your version of Windows.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODS-webout-ensuring-I-get-the-correct-file-format/m-p/890811#M43547</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2023-08-24T15:51:53Z</dc:date>
    </item>
  </channel>
</rss>

