<?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: set explicit pdf papersize in web stored process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82658#M3556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What options are you passing to the %stpbegin macro? If I read the macro correctly it looks like you can send print options via the parameter _PRINTOPTIONS and it looks like PAPERSIZE should be accepted though I can't tell immediately what the syntax would be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 14:29:53 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-09-16T14:29:53Z</dc:date>
    <item>
      <title>set explicit pdf papersize in web stored process</title>
      <link>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82657#M3555</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 have a stored process that i call from the web.&lt;/P&gt;&lt;P&gt;the stored process is created in EG and also deployed from EG.&lt;/P&gt;&lt;P&gt;the stored process generates a fancy pdf document with ods layout stuff applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i call the stored process from a browser with US locale, the papersize is set to letter (see my previous question at &lt;A _jive_internal="true" href="https://communities.sas.com/message/180880#180880"&gt;https://communities.sas.com/message/180880#180880&lt;/A&gt;) causing the content to run off the pdf page.&lt;/P&gt;&lt;P&gt;i need to force papersize A4.&lt;/P&gt;&lt;P&gt;the obvious solution would be to set options papersize=a4 in my EG project, but i already did this and it doesn't work.&lt;/P&gt;&lt;P&gt;i think this is because when the stored process is deployed from EG, %stpbegin is inserted before all my code causing the ods pdf stream to already be opened with the letter papersize before my options papersize=a4 has the chance of altering it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can get it to work by manually editing the stored process source code and inserting the options papersize=a4 statement before the %stpbegin macro but i am not allowed to do that in our environment.&lt;/P&gt;&lt;P&gt;is there another way to dictate the papersize option in this scenario?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;i would rather not deploy the stored process without the %stpbegin macro and code my own ods pdf statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Sep 2013 15:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82657#M3555</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2013-09-14T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: set explicit pdf papersize in web stored process</title>
      <link>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82658#M3556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What options are you passing to the %stpbegin macro? If I read the macro correctly it looks like you can send print options via the parameter _PRINTOPTIONS and it looks like PAPERSIZE should be accepted though I can't tell immediately what the syntax would be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 14:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82658#M3556</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-09-16T14:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: set explicit pdf papersize in web stored process</title>
      <link>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82659#M3557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;_PRINTOPTIONS worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after some error checking, %stpbegin submits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %if (%qcmpres(&amp;amp;_STPERROR) eq 0) %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options &amp;amp;_PRINTOPTIONS;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i added a hidden parameter to the Stored Process with name "_printoptions" and default value "papapersize=a4" and now the pdf comes out in A4 regardless of browser locale.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 17:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/set-explicit-pdf-papersize-in-web-stored-process/m-p/82659#M3557</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2013-09-16T17:48:27Z</dc:date>
    </item>
  </channel>
</rss>

