<?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 insert an image in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/insert-an-image/m-p/6858#M2623</link>
    <description>Hello dear sas users. thank you cynthia for your answer at my last question.&lt;BR /&gt;
I have a question : &lt;BR /&gt;
Is there another way to put some image in a  rtf file or in a pdf file except this code :&lt;BR /&gt;
&lt;BR /&gt;
data nothing1;&lt;BR /&gt;
line="first graph";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
&lt;BR /&gt;
ods rtf file='G:/assens/image/grafods1.rtf' ;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
title j=c "^S={preimage='G:\myimage.jpg'}";&lt;BR /&gt;
&lt;BR /&gt;
proc report data=nothing1 noheader Headline Headskip  ls=150  nowd;&lt;BR /&gt;
column line;&lt;BR /&gt;
define line /display "" width=30 left;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
ods rtf close;</description>
    <pubDate>Fri, 08 Feb 2008 13:57:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-02-08T13:57:07Z</dc:date>
    <item>
      <title>insert an image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/insert-an-image/m-p/6858#M2623</link>
      <description>Hello dear sas users. thank you cynthia for your answer at my last question.&lt;BR /&gt;
I have a question : &lt;BR /&gt;
Is there another way to put some image in a  rtf file or in a pdf file except this code :&lt;BR /&gt;
&lt;BR /&gt;
data nothing1;&lt;BR /&gt;
line="first graph";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
&lt;BR /&gt;
ods rtf file='G:/assens/image/grafods1.rtf' ;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
title j=c "^S={preimage='G:\myimage.jpg'}";&lt;BR /&gt;
&lt;BR /&gt;
proc report data=nothing1 noheader Headline Headskip  ls=150  nowd;&lt;BR /&gt;
column line;&lt;BR /&gt;
define line /display "" width=30 left;&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
ods rtf close;</description>
      <pubDate>Fri, 08 Feb 2008 13:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/insert-an-image/m-p/6858#M2623</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T13:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: insert an image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/insert-an-image/m-p/6859#M2624</link>
      <description>Hi:&lt;BR /&gt;
  "Some image" is vague. The basic ODS sandwich technique can be used to put SAS/Graph images into your ODS output:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods rtf file='wombat.rtf';&lt;BR /&gt;
&lt;BR /&gt;
....PROC GCHART or PROC GSLIDE or PROC GPLOT...&lt;BR /&gt;
&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
The technique that you show:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title j=c "^S={preimage='G:\myimage.jpg'}";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
... is how people frequently get corporate logos or other images into their output -- by putting the image into the SAS TITLE statement.&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
If you were producing a shoe catalog, with PROC PRINT for example, and you wanted a picture of a particular style shoe -- so that the repoprt row showed the picture of the shoe, the style name and the MSRP, then you could use the PREIMAGE attribute on the VAR statement for the PROC PRINT -- probably with a user defined format, so each shoe style would get a different image.&lt;BR /&gt;
 &lt;BR /&gt;
If you are having trouble with SAS/Graph and/or PROC GREPLAY or you need more help with the preimage= attribute, your best bet for help is to contact SAS Tech Support. They can look at your graphical image and help you come up with the best technique to get it into your report.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 08 Feb 2008 16:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/insert-an-image/m-p/6859#M2624</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-02-08T16:13:31Z</dc:date>
    </item>
  </channel>
</rss>

