<?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 Base path for DRAWIMAGE in Template Language in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57238#M1942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you may have found a bug.&amp;nbsp; The GTL graph rendering is done using Java and we may not have told it the correct current work directory.&amp;nbsp; I have opened a defect to review this.&amp;nbsp; It seems "relative" is working off of the location provided in %USERPROFILE%.&amp;nbsp; The work around for you would be to put the image file there or use the fully qualified path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2011 21:50:35 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2011-08-30T21:50:35Z</dc:date>
    <item>
      <title>Base path for DRAWIMAGE in Template Language</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57235#M1939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;EM&gt;image-file-spec&lt;/EM&gt; argument in the DRAWIMAGE statement of the template language can be a &lt;EM&gt;relative&lt;/EM&gt; local file path. But relative to what? I'm using SAS 9.3 TS1M0 on XP_PRO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 15:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57235#M1939</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2011-08-30T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Base path for DRAWIMAGE in Template Language</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57236#M1940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file name is relative to your start folder (shown in the status line at the bottom of the SAS window).&amp;nbsp; If you start SAS in C:\Users\&amp;lt;userid&amp;gt;, and provide a file name without a path or url, then the image will be assumed to be in this folder.&amp;nbsp; In the example below, the file "saslogo.png" is expected to be in C:\Users\&amp;lt;userid&amp;gt;.&amp;nbsp; See attached output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc template;
&amp;nbsp; define statgraph image;
&amp;nbsp;&amp;nbsp;&amp;nbsp; begingraph / designwidth=400px designheight=300px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; entrytitle "Regression Fit Plot"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modelband "myclm";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scatterplot x=height y=weight / primary=true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; regressionplot x=height y=weight / alpha=.01 clm="myclm"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drawimage "saslogo.png" / x=95 y=5
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xspace=wallpercent yspace=wallpercent 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anchor=bottomright; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;
&amp;nbsp; end;
run;

ods graphics / reset imagename="drawimage";
proc sgrender data=sashelp.class template=image; 
run;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG alt="drawimage.png" class="jive-image" src="https://communities.sas.com/../servlet/JiveServlet/downloadImage/1082/drawimage.png" /&gt; &lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 18:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57236#M1940</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-08-30T18:46:23Z</dc:date>
    </item>
    <item>
      <title>Base path for DRAWIMAGE in Template Language</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57237#M1941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sanjay, you confirm what I thought should happen. It works fine when supplied a full pathname but doesn’t with relative pathnames. The SAS program logged below produces two figures, the first one with no logo, the second one, using a full path, displays my logo :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1 x "cd C:\Documents and Settings\gagnonp\My Documents"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ! ;&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3 proc template;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/P&gt;&lt;P&gt;4 define statgraph imageRelative;&lt;/P&gt;&lt;P&gt;5 begingraph / designwidth=400px designheight=300px;&lt;/P&gt;&lt;P&gt;6 entrytitle "Regression Fit Plot";&lt;/P&gt;&lt;P&gt;7 layout overlay;&lt;/P&gt;&lt;P&gt;8 modelband "myclm";&lt;/P&gt;&lt;P&gt;9 scatterplot x=height y=weight / primary=true;&lt;/P&gt;&lt;P&gt;10 regressionplot x=height y=weight / alpha=.01 clm="myclm";&lt;/P&gt;&lt;P&gt;11 drawimage "Environnement Canada Fr En.png" / x=95 y=5&lt;/P&gt;&lt;P&gt;12 xspace=wallpercent yspace=wallpercent&lt;/P&gt;&lt;P&gt;13 anchor=bottomright;&lt;/P&gt;&lt;P&gt;14 endlayout;&lt;/P&gt;&lt;P&gt;15 endgraph;&lt;/P&gt;&lt;P&gt;16 end;&lt;/P&gt;&lt;P&gt;NOTE: Overwriting existing template/link: imageRelative&lt;/P&gt;&lt;P&gt;NOTE: STATGRAPH 'imageRelative' has been saved to: SASUSER.TEMPLAT&lt;/P&gt;&lt;P&gt;17 define statgraph imageFull;&lt;/P&gt;&lt;P&gt;18 begingraph / designwidth=400px designheight=300px;&lt;/P&gt;&lt;P&gt;19 entrytitle "Regression Fit Plot";&lt;/P&gt;&lt;P&gt;20 layout overlay;&lt;/P&gt;&lt;P&gt;21 modelband "myclm";&lt;/P&gt;&lt;P&gt;22 scatterplot x=height y=weight / primary=true;&lt;/P&gt;&lt;P&gt;23 regressionplot x=height y=weight / alpha=.01 clm="myclm";&lt;/P&gt;&lt;P&gt;24 drawimage "C:\Documents and Settings\gagnonp\My&lt;/P&gt;&lt;P&gt;24 ! Documents\Environnement Canada Fr En.png" /&lt;/P&gt;&lt;P&gt;25 x=95 y=5&lt;/P&gt;&lt;P&gt;26 xspace=wallpercent yspace=wallpercent&lt;/P&gt;&lt;P&gt;27 anchor=bottomright;&lt;/P&gt;&lt;P&gt;28 endlayout;&lt;/P&gt;&lt;P&gt;29 endgraph;&lt;/P&gt;&lt;P&gt;30 end;&lt;/P&gt;&lt;P&gt;NOTE: Overwriting existing template/link: imageFull&lt;/P&gt;&lt;P&gt;NOTE: STATGRAPH 'imageFull' has been saved to: SASUSER.TEMPLAT&lt;/P&gt;&lt;P&gt;31 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE TEMPLATE used (Total process time):&lt;/P&gt;&lt;P&gt;real time 1.65 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.57 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;32&lt;/P&gt;&lt;P&gt;33 ods graphics / reset imagename="drawRelative";&lt;/P&gt;&lt;P&gt;34 proc sgrender data=sashelp.class template=imageRelative;&lt;/P&gt;&lt;P&gt;35 run;&lt;/P&gt;&lt;P&gt;WARNING: IMAGE=Environnement Canada Fr En.png n'est pas valide. Fichier introuvable.&lt;/P&gt;&lt;P&gt;WARNING: IMAGE=Environnement Canada Fr En.png n'est pas valide.&lt;/P&gt;&lt;P&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SGRENDER used (Total process time):&lt;/P&gt;&lt;P&gt;real time 1.62 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.36 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;36 ods graphics / reset imagename="drawFull";&lt;/P&gt;&lt;P&gt;37 proc sgrender data=sashelp.class template=imageFull;&lt;/P&gt;&lt;P&gt;38 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SGRENDER used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.46 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 20:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57237#M1941</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2011-08-30T20:22:30Z</dc:date>
    </item>
    <item>
      <title>Base path for DRAWIMAGE in Template Language</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57238#M1942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you may have found a bug.&amp;nbsp; The GTL graph rendering is done using Java and we may not have told it the correct current work directory.&amp;nbsp; I have opened a defect to review this.&amp;nbsp; It seems "relative" is working off of the location provided in %USERPROFILE%.&amp;nbsp; The work around for you would be to put the image file there or use the fully qualified path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 21:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Base-path-for-DRAWIMAGE-in-Template-Language/m-p/57238#M1942</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-08-30T21:50:35Z</dc:date>
    </item>
  </channel>
</rss>

