<?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: Add image to PROC Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27037#M4310</link>
    <description>Hi:&lt;BR /&gt;
  Look at this Tech Support note -- even though it shows ODS PDF, the technique will work for ODS RTF or ODS HTML:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/229.html" target="_blank"&gt;http://support.sas.com/kb/24/229.html&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
  Using your method, the SAS title will come first, then the table, with the preimage before the table. The title ALWAYS comes first. So if you want the image and then the title, you'd have to move your PREIMAGE specification from the PROC REPORT step and into the TITLE statement and then whatever other text you want into the TITLE2 statement. &lt;BR /&gt;
 &lt;BR /&gt;
  The ONLY thing you'll have to be careful of is that for RTF and PDF, the image location is the image file path when the RTF or PDF file is CREATED; whereas, for HTML, the image location that you specify is the image file path that will be needed when the HTML file is -LOADED- into the browser. Sometimes these are different locations...for example, the RTF and PDF location might be a local computer location, while the HTML location might be a web server location (such as where the HTML file and image will be stored when the HTML file is accessed).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 07 Dec 2009 20:09:08 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-12-07T20:09:08Z</dc:date>
    <item>
      <title>Add image to PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27036#M4309</link>
      <description>I am trying to insert a jpeg at the top of my report. I also would like a text under neath it. I have tried several ways with no success. &lt;BR /&gt;
&lt;BR /&gt;
I tried this...&lt;BR /&gt;
proc report data=CanxPctCnt nowd split='#' center&lt;BR /&gt;
 style={preimage='D:\Documents and Settings\amrapon\Desktop\Harley Davidson Report\Harley Logo For Top Of Report.jpg'};&lt;BR /&gt;
 title2 'Dealer: 0415';&lt;BR /&gt;
&lt;BR /&gt;
I get the image, but then the tile appears above it. I would like it below the image.</description>
      <pubDate>Mon, 07 Dec 2009 19:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27036#M4309</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T19:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add image to PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27037#M4310</link>
      <description>Hi:&lt;BR /&gt;
  Look at this Tech Support note -- even though it shows ODS PDF, the technique will work for ODS RTF or ODS HTML:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/229.html" target="_blank"&gt;http://support.sas.com/kb/24/229.html&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
  Using your method, the SAS title will come first, then the table, with the preimage before the table. The title ALWAYS comes first. So if you want the image and then the title, you'd have to move your PREIMAGE specification from the PROC REPORT step and into the TITLE statement and then whatever other text you want into the TITLE2 statement. &lt;BR /&gt;
 &lt;BR /&gt;
  The ONLY thing you'll have to be careful of is that for RTF and PDF, the image location is the image file path when the RTF or PDF file is CREATED; whereas, for HTML, the image location that you specify is the image file path that will be needed when the HTML file is -LOADED- into the browser. Sometimes these are different locations...for example, the RTF and PDF location might be a local computer location, while the HTML location might be a web server location (such as where the HTML file and image will be stored when the HTML file is accessed).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 Dec 2009 20:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27037#M4310</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-07T20:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add image to PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27038#M4311</link>
      <description>Ok, that worked for the titles! Thanks. But how come when I add the footnote, it causes the following error?....&lt;BR /&gt;
&lt;BR /&gt;
options nodate nonumber;&lt;BR /&gt;
ods pdf file="C:\PC_SAS\TEST FORMATTING.pdf";&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
&lt;BR /&gt;
proc report data=CanxPctCnt nowd split='#' center;&lt;BR /&gt;
 title&lt;BR /&gt;
      j=c '^S={preimage="D:\Documents and Settings\amrapon\Desktop\Harley Davidson Report\Harley Logo For Top Of Report.jpg"}'&lt;BR /&gt;
      j=c 'Dealer: 0415';&lt;BR /&gt;
footnote1 j=r 'Page ^{thispage} of ^{lastpage}';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: No logical assign for filename &amp;#4;.&lt;BR /&gt;
ERROR: Internal error on replay for "page i of n" processing.  Could be caused by out of memory,&lt;BR /&gt;
       out of disk space, or internal coding error. Check for other error messages above&lt;BR /&gt;
       indicating probable user error or resource constraints; if there are none, or if they make&lt;BR /&gt;
       no sense, please report this message and provide a test program to SAS Institute.</description>
      <pubDate>Mon, 07 Dec 2009 21:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27038#M4311</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-07T21:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add image to PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27039#M4312</link>
      <description>Hi:&lt;BR /&gt;
  I believe you're running into this situation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/15/541.html" target="_blank"&gt;http://support.sas.com/kb/15/541.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  If you are working in SAS 9.2 and still encounter this issue, then you should work with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 Dec 2009 21:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-image-to-PROC-Report/m-p/27039#M4312</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-07T21:47:50Z</dc:date>
    </item>
  </channel>
</rss>

