<?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: Forcing PDF file to open in a window in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99798#M3678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cynthia.&amp;nbsp; STPSRV_HEADER did the trick.&amp;nbsp; Your papers have been a big help as I explore stored processes.&amp;nbsp; And your ODS book holds a treasured space on my desk (I use it too often to bother puting it back on my shelf. : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 13:37:26 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2012-05-02T13:37:26Z</dc:date>
    <item>
      <title>Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99796#M3676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a stored-process that&amp;nbsp; a user will call from the Stored Process Web App, and will specify the _odsdest as pdf or html.&amp;nbsp; Process is running on the Stored Process Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I've been playing with this, it seems like half the time I run it (from internent explorer), the PDF opens in a new IE window.&amp;nbsp; I like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But other times I run it, IE pops up a file download box asking me if I want to save do.pdf to my local drive.&amp;nbsp; Less useful.&amp;nbsp; I would like users to see the pdf, then decide whether they want to save it or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I force IE to display the pdf?&amp;nbsp; Is this somethig I need to set with stpsrv_header, or do I need to change the SAS results type to be package only (currently both package and streaming are checked).&amp;nbsp; Or do I need to write the pdf file to the server somewhere, and then somehow open it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a ways I can give a name to the pdf (rather than do.pdf)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is basically:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%global _odsdest;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%stpbegin;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc print data=sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%stpend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With user specifying _odsdest=HTML or PDF.&amp;nbsp; And I use Cindy Z's %SetOpts macro to set some of the options, based on output destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I'd be better off going back to good old "ods pdf" / "ods html", rather than using %stpbegin??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 15:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99796#M3676</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-05-01T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99797#M3677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Usually, you need to alter the STPSRV_HEADER to return PDF output using the SAS Stored Process Web App. In my paper, I did not show the use of STPSRV_HEADER because that macro was really only meant to give the general outline of how you would develop one stored process instead of 3 separate stored processes. And, the actual code was only ever submitted from SAS Enterprise Guide -- which did not need to have the STPSRV_HEADER set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Take a look at the code samples in this Tech Support note. You really would need to set STPSRV_HEADER for ODS PDF as shown here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/12/994.html" title="http://support.sas.com/kb/12/994.html"&gt;http://support.sas.com/kb/12/994.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 00:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99797#M3677</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-05-02T00:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99798#M3678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cynthia.&amp;nbsp; STPSRV_HEADER did the trick.&amp;nbsp; Your papers have been a big help as I explore stored processes.&amp;nbsp; And your ODS book holds a treasured space on my desk (I use it too often to bother puting it back on my shelf. : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 13:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99798#M3678</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-05-02T13:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99799#M3679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Which book are you talking about? I need to buy one too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99799#M3679</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-02T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99800#M3680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Output Delivery System: The Basics and Beyond", by Lauren Hayworth, Cynthia Zendler, and Michele M. Burlew.&amp;nbsp; Really good stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99800#M3680</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-05-02T14:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99801#M3681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99801#M3681</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-02T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing PDF file to open in a window</title>
      <link>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99802#M3682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe it is this one:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/Output-Delivery-System-ODS-Basics/dp/1599946602/ref=sr_1_1?ie=UTF8&amp;amp;qid=1335972131&amp;amp;sr=8-1" title="http://www.amazon.com/Output-Delivery-System-ODS-Basics/dp/1599946602/ref=sr_1_1?ie=UTF8&amp;amp;qid=1335972131&amp;amp;sr=8-1"&gt;http://www.amazon.com/Output-Delivery-System-ODS-Basics/dp/1599946602/ref=sr_1_1?ie=UTF8&amp;amp;qid=1335972131&amp;amp;sr=8-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Forcing-PDF-file-to-open-in-a-window/m-p/99802#M3682</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-05-02T15:23:00Z</dc:date>
    </item>
  </channel>
</rss>

