<?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: Insert Image into Report Writing Interface via URL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/432040#M281704</link>
    <description>Hi, It looks like you're using Enterprise Guide. In my sample code, I was NOT using EG and I was controlling my ODS Destination with programming statements.  &lt;BR /&gt;&lt;BR /&gt;  My suggestion is that you put an &lt;BR /&gt;ODS _ALL_ CLOSE; &lt;BR /&gt;before the ODS PDF statement and make sure that your FILE= option is pointing to a location where you have WRITE access. Also, harder to check is that you will need to make sure your program, which is running on a server, can access a URL from the server machine. If your web folks have locked down the server so it cannot use an HTTP address, then you will have to move your images to an accessible location on the server. You may need an administrator's help with that.&lt;BR /&gt;&lt;BR /&gt;  My image was just a picture of Lewis Carroll that I found and used because it had a direct HTTP address. If you have your images on a network drive, then perhaps a simple folder path will work for you.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Tue, 30 Jan 2018 02:35:36 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-01-30T02:35:36Z</dc:date>
    <item>
      <title>Insert Image into Report Writing Interface via URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/431413#M281701</link>
      <description>&lt;P&gt;Hi everyone, I'm attempting to insert images into a report I'm writing with report writing interface via URL.&amp;nbsp; A specific image needs to be in every region on a page, and the image is stored on a web server.&amp;nbsp; I&amp;nbsp;use obj.image(file: myurl)&amp;nbsp;and got the error unable to load image...default image will be used.&amp;nbsp; &amp;nbsp;Resources on image inserting via url&amp;nbsp;don't seem to be plentiful.&amp;nbsp; Any help and examples are much appreciated, and I'd also like to know if this image will be automatically sized to fit the region, and if not, how to can specify it's dimensions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;obj.region(&lt;BR /&gt;width:"1.9in", height: "3.2in",&lt;BR /&gt;x : "0in", y: "0in",&lt;BR /&gt;style_attr: "background=grey color=grey"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;obj.image(file: 'my.com/url');&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 20:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/431413#M281701</guid>
      <dc:creator>yus03590</dc:creator>
      <dc:date>2018-01-26T20:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Image into Report Writing Interface via URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/431504#M281702</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This example worked for me. It is a picture of Lewis Carroll available at a URL. I needed a fully qualified HTTP address for the URL.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='c:\temp\testurl.pdf' notoc;
 
data _null_;
  length pixloc $256;
  if _n_ = 1 then do;
    pixloc='http://img.bhs4.com/45/e/45e71f0d91fb0b65b98b129552466d58c2e46d6d_large.jpg';
  end;
  if _n_ = 1 then do;
     dcl odsout obj();
     obj.layout_gridded(columns:1);
  end;
  obj.region(width:"3.25in");
  obj.image(file: pixloc ,
            overrides:"just=left width=100pct"); 
  if eof eq 1 then
    obj.layout_end();
run;
 
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jan 2018 01:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/431504#M281702</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-27T01:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Image into Report Writing Interface via URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/431967#M281703</link>
      <description>&lt;P&gt;I'm getting the following errors when running the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Unable to load image&lt;BR /&gt;&lt;A href="http://img.bhs4.com/45/e/45e71f0d91fb0b65b98b129552466d58c2e46d6d_large.jpg" target="_blank"&gt;http://img.bhs4.com/45/e/45e71f0d91fb0b65b98b129552466d58c2e46d6d_large.jpg&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;default image will be used instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log file also has the following warning:&lt;/P&gt;&lt;P&gt;WARNING: ODS Report Writing Interface is not supported for TAGSETS.SASREPORT13(EGSR) destination.&amp;nbsp; Results may be unpredictable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I've used RWI to generate reports on this machine/server before (Never with images though).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 21:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/431967#M281703</guid>
      <dc:creator>yus03590</dc:creator>
      <dc:date>2018-01-29T21:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Image into Report Writing Interface via URL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/432040#M281704</link>
      <description>Hi, It looks like you're using Enterprise Guide. In my sample code, I was NOT using EG and I was controlling my ODS Destination with programming statements.  &lt;BR /&gt;&lt;BR /&gt;  My suggestion is that you put an &lt;BR /&gt;ODS _ALL_ CLOSE; &lt;BR /&gt;before the ODS PDF statement and make sure that your FILE= option is pointing to a location where you have WRITE access. Also, harder to check is that you will need to make sure your program, which is running on a server, can access a URL from the server machine. If your web folks have locked down the server so it cannot use an HTTP address, then you will have to move your images to an accessible location on the server. You may need an administrator's help with that.&lt;BR /&gt;&lt;BR /&gt;  My image was just a picture of Lewis Carroll that I found and used because it had a direct HTTP address. If you have your images on a network drive, then perhaps a simple folder path will work for you.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 30 Jan 2018 02:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-Image-into-Report-Writing-Interface-via-URL/m-p/432040#M281704</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-30T02:35:36Z</dc:date>
    </item>
  </channel>
</rss>

