<?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 text under the image in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64123#M7487</link>
    <description>Hi:&lt;BR /&gt;
  ASIS=ON is used to preserve leading and trailing spaces in a cell. But I guess I'm confused about a few things about your question and your code:&lt;BR /&gt;
1) where do you want to preserve leading or trailing spaces in your report?&lt;BR /&gt;
&lt;BR /&gt;
2) what led you to conclude that you needed ASIS=ON?&lt;BR /&gt;
         &lt;BR /&gt;
3) In your code you have these TITLE statements. So, my question to you is, does the string "hello world" appear underneath the logo where you want the date and contact information????:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title1 j=R '~S={preimage="/UETLDVH/config/ETL1DVH/images/Posten_Logo.jpg"}';&lt;BR /&gt;
title2 ' hello world';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
4) based on some of your previous postings, I seem to remember that you are using stored processes???? Is this program part of a stored process and, if so, which client applications will be receiving the PDF results??&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 03 Mar 2010 16:44:44 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-03-03T16:44:44Z</dc:date>
    <item>
      <title>Insert text under the image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64122#M7486</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using ODS PDF to generate a report which uses an image as a letter head. Just under the image i would like to insert the field date and contact information.&lt;BR /&gt;
&lt;BR /&gt;
Any suggestion.&lt;BR /&gt;
&lt;BR /&gt;
I am attaching the code which i have written to get the report.&lt;BR /&gt;
&lt;BR /&gt;
Where should i put the option ASIS = ON in the proc report code?????&lt;BR /&gt;
&lt;BR /&gt;
OS:AIX&lt;BR /&gt;
SAS Version: SAS 9.1.3&lt;BR /&gt;
Method: ODS PDF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS CODE&lt;BR /&gt;
000000000000000000000000000000000000000000000&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
&lt;BR /&gt;
ODS _ALL_ CLOSE;&lt;BR /&gt;
options nobyline nonumber linesize=max pagesize=60 nocenter nodate asis=ON ;&lt;BR /&gt;
ods pdf file="RD040.pdf" notoc style = printer;	 &lt;BR /&gt;
;&lt;BR /&gt;
proc report data=RD040_PKS_LETTER_TO_PRINT&lt;BR /&gt;
	out = RD040_PKS_Letter_Status&lt;BR /&gt;
		(keep = &lt;BR /&gt;
			ref_no&lt;BR /&gt;
			date_printed&lt;BR /&gt;
			report_no&lt;BR /&gt;
		rename = (ref_no = Ref_Order_Number))&lt;BR /&gt;
	nowd noheader &lt;BR /&gt;
		&lt;BR /&gt;
    style(report)={rules=none frame=void cellspacing=0 leftmargin = 5 cellpadding=3 outputwidth=100%} ;&lt;BR /&gt;
  title h=14pt ' ~10n';&lt;BR /&gt;
&lt;BR /&gt;
  footnote ' ';&lt;BR /&gt;
&lt;BR /&gt;
  column ref_no lineno linetxt date_printed report_no;&lt;BR /&gt;
&lt;BR /&gt;
  define date_printed/noprint;&lt;BR /&gt;
  define report_no/noprint;&lt;BR /&gt;
  define ref_no / order noprint;&lt;BR /&gt;
  define lineno / order noprint;&lt;BR /&gt;
  define linetxt/&lt;BR /&gt;
         style(column)={font_face='times'};&lt;BR /&gt;
  compute linetxt;&lt;BR /&gt;
     if lineno in (1,2,3) then do;&lt;BR /&gt;
         call define(_col_,'style','style={font_size=15pt}');&lt;BR /&gt;
    end;&lt;BR /&gt;
	else if lineno in(4) then do;&lt;BR /&gt;
		call define(_col_,'style','style={font_weight=bold font_size=15pt just=left}');&lt;BR /&gt;
	end;&lt;BR /&gt;
    else do;&lt;BR /&gt;
         call define(_col_,'style','style={font_weight=medium font_size=15pt}');&lt;BR /&gt;
    end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
&lt;BR /&gt;
	title1 j=R '~S={preimage="/UETLDVH/config/ETL1DVH/images/Posten_Logo.jpg"}';&lt;BR /&gt;
	title2  '                    hello world';&lt;BR /&gt;
  &lt;BR /&gt;
  break after ref_no / page;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
000000000000000000000000000000000000000000000&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Russell</description>
      <pubDate>Wed, 03 Mar 2010 15:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64122#M7486</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-03-03T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insert text under the image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64123#M7487</link>
      <description>Hi:&lt;BR /&gt;
  ASIS=ON is used to preserve leading and trailing spaces in a cell. But I guess I'm confused about a few things about your question and your code:&lt;BR /&gt;
1) where do you want to preserve leading or trailing spaces in your report?&lt;BR /&gt;
&lt;BR /&gt;
2) what led you to conclude that you needed ASIS=ON?&lt;BR /&gt;
         &lt;BR /&gt;
3) In your code you have these TITLE statements. So, my question to you is, does the string "hello world" appear underneath the logo where you want the date and contact information????:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title1 j=R '~S={preimage="/UETLDVH/config/ETL1DVH/images/Posten_Logo.jpg"}';&lt;BR /&gt;
title2 ' hello world';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
4) based on some of your previous postings, I seem to remember that you are using stored processes???? Is this program part of a stored process and, if so, which client applications will be receiving the PDF results??&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 03 Mar 2010 16:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64123#M7487</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-03T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert text under the image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64124#M7488</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
yes I am using stored process.&lt;BR /&gt;
&lt;BR /&gt;
I put the hello world under the image and was thinking of using the ASIs option to indent the text to come under the image which is right justified. Once that was possible replace the text with teh correct text.&lt;BR /&gt;
&lt;BR /&gt;
Also I thought of ASIS because it's more than one value hwich will come under the inage. Using the ASIs option will help me get the text in the place where I need.&lt;BR /&gt;
&lt;BR /&gt;
We are surfacing the stored process thru the SAS Information Delivery Portal. &lt;BR /&gt;
&lt;BR /&gt;
You can suggest another alternative if possible.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Russell

Message was edited by: Russell Almeida</description>
      <pubDate>Wed, 03 Mar 2010 20:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64124#M7488</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-03-03T20:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insert text under the image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64125#M7489</link>
      <description>Hi:&lt;BR /&gt;
  OK...here goes.&lt;BR /&gt;
&lt;BR /&gt;
If this were BASE SAS, I'd just suggest using ODS ESCAPECHAR and a NON-BREAKING space (ESCAPECHAR+UNDERSCORE). So, for example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title1 j=R '~S={preimage="/UETLDVH/config/ETL1DVH/images/Posten_Logo.jpg"}';&lt;BR /&gt;
title2 ' ~S={asis=on}~_~_~_~_~_}hello world';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
If the ESCAPECHAR is set to tilde (~), then every ~_ would be one non-breaking space and the ~S style override is the way that ODS ESCAPECHAR syntax would be used to pass ASIS=ON to ODS PDF.&lt;BR /&gt;
 &lt;BR /&gt;
OK...now some stored process specific comments:&lt;BR /&gt;
1) Generally, your stored process cannot write to your LOCAL drive. So either you replace this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file="RD040.pdf" notoc style = printer; &lt;BR /&gt;
WITH&lt;BR /&gt;
ods pdf file=_webout notoc style = printer; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
and possibly use the STPSRV_HEADER function  BEFORE the ODS PDF step (assuming you're going to run the stored process in the PORTAL). OR, you must use the *ProcessBody and the %STPBEGIN/%STPEND stored process macros instead of the ODS PDF OPEN and CLOSE statements. Information about STPSRV_HEADER for PDF:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/12/994.html" target="_blank"&gt;http://support.sas.com/kb/12/994.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
2) Depending on WHERE you run your stored process, the location of the LOGO file, has to be a location that is accessible to either the Stored Process Server or the Workspace Server. These servers do not have any visibility of your local machine. When an RTF file or a PDF file is created and that file uses images, the images are converted to "internal" or embedded images. So the location you must specify in your PREIMAGE= attribute is the location where the image will be located when the PDF file is CREATED....this means in a location available to the server.&lt;BR /&gt;
&lt;BR /&gt;
3) Remember that when you create PDF output from a stored process, you are limiting which client applications can run the stored process. For example, PDF results are only "received" by SAS Enterprise Guide, by the SAS Information Delivery Portal and/or by a custom call to the Stored Process Web Application. You will NOT be able to run this SP code from within WRS or the SAS Add-in for Microsoft Office.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 03 Mar 2010 22:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64125#M7489</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-03T22:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insert text under the image</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64126#M7490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to insert and create a &lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/image-annotating-text/"&gt;text&lt;/A&gt; &lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/image-annotating/"&gt;annotation&lt;/A&gt; contating the field date and contact information under the image, you can try to use the document image annotation tool if your image processing application including a annotator. If your current image editing program doesn't support adding and creating text annotation, you may use a annoation compatible document image reader, such as the well know Adobe reader that contains the text annotation control. Or just search via google to install and apply a free annotation plugin within your document image editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 03:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Insert-text-under-the-image/m-p/64126#M7490</guid>
      <dc:creator>BenthamLEE</dc:creator>
      <dc:date>2014-03-10T03:21:43Z</dc:date>
    </item>
  </channel>
</rss>

