<?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 create both pdf and html reports in one program in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680236#M24377</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to create both pdf and html reports in one program, but i get an error. Please see an attached picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PICTURE.PNG" style="width: 739px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48783iACAAFABEB138A1AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="PICTURE.PNG" alt="PICTURE.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First i create pdf file and then html.&lt;/P&gt;&lt;P&gt;pdf code looks like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;odf pdf file="";
................
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;html code looks like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;goptions device=Activex border;
ods listing close;
ods html path="" gpath="" file="";
...................
ods html close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When i run each report separately, i don't get any error and report is created.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 29 Aug 2020 18:20:04 GMT</pubDate>
    <dc:creator>AlexeyS</dc:creator>
    <dc:date>2020-08-29T18:20:04Z</dc:date>
    <item>
      <title>create both pdf and html reports in one program</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680236#M24377</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to create both pdf and html reports in one program, but i get an error. Please see an attached picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PICTURE.PNG" style="width: 739px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48783iACAAFABEB138A1AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="PICTURE.PNG" alt="PICTURE.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First i create pdf file and then html.&lt;/P&gt;&lt;P&gt;pdf code looks like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;odf pdf file="";
................
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;html code looks like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;goptions device=Activex border;
ods listing close;
ods html path="" gpath="" file="";
...................
ods html close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When i run each report separately, i don't get any error and report is created.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 29 Aug 2020 18:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680236#M24377</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2020-08-29T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: create both pdf and html reports in one program</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680255#M24378</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;What procedure are you running inside the ODS "sandwich"? Do you really need the ActiveX device? The fact is that ActiveX is Microsoft technology that PDF is not "happy". If you are using "G: procedures (like GCHART or GPLOT), then device=PNG should be OK for both. If you are using the "SG" procedures (like SGPLOT or SGPANEL), then you should be using the ODS GRAPHICS statement instead of the GOPTIONS statement. &lt;BR /&gt;&lt;BR /&gt;I do expect to see THIS warning if I try to use ACTIVEX with any of the graph procedures and ODS PDF:&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#008000"&gt;&lt;STRONG&gt;WARNING: Unsupported device 'ACTIVEX' for PDF destination.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#008000"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using device 'ACTXIMG'.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;However, when I try to use ACTIVEX as the device, I do NOT get the TRACEBACK errors that you get. That is NOT good. But you got the message on a READ ACCESS Violation and since you didn't show all your code (PATH, FILE, etc) , it's hard to determine whether the issue came from the device or came from the place you tried to write for GPATH, and/or PATH.&lt;BR /&gt;&lt;BR /&gt;This works for me with one program in both PDF and HTML. I used PNG for the device, since that is essentially what ACTXIMG is behind the scenes. The code worked for me with GPLOT and SGPLOT.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1598743965669.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48789iEE437B2DB6223378/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1598743965669.png" alt="Cynthia_sas_0-1598743965669.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output one page for each image in PDF file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1598744046067.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48790iCB03EE0FDCB93AB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1598744046067.png" alt="Cynthia_sas_1-1598744046067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 29 Aug 2020 23:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680255#M24378</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-29T23:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: create both pdf and html reports in one program</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680901#M24389</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;I use proc gplot and proc print in each ods(html and pdf). I use different programs for pdf and html.&lt;/P&gt;&lt;P&gt;if&amp;nbsp; I understood you correctly, i need in both ods html and ods pdf write&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;device=PNG, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 09:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/create-both-pdf-and-html-reports-in-one-program/m-p/680901#M24389</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2020-09-02T09:40:02Z</dc:date>
    </item>
  </channel>
</rss>

