<?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: ODS PDF - border around ODS TEXT not solid line in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553975#M22664</link>
    <description>You were using STYLE=HTMLBLUE in your original posted code, so that's what I used as Parent= in the template code. However, HTMLBLUE is designed for HTML, so in production, I'd recommend using a style like Pearl which was designed for PDF. &lt;BR /&gt;The USERTEXT style element in the CLASS statement is the element that controls ODS TEXT= strings. You should be able to use my template code and only need to delete the color=red line.&lt;BR /&gt;Cynthia</description>
    <pubDate>Thu, 25 Apr 2019 14:26:33 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-04-25T14:26:33Z</dc:date>
    <item>
      <title>ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553368#M22657</link>
      <description>&lt;P&gt;I'm creating a PDF with ODS PDF statements, and it's beautiful, except for one small region. It's just a few lines of text (using ODS TEXT statements) -- but I'd like to draw a solid black border around it. I haven't been able to make the left border appear as a solid black line, because the text overwrites it. (Top, bottom and right borders are all solid black lines - great!) I've tried using marginleft= and asis=on and cellpadding=, and nothing seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods region x=0in y=9in width=8in height=0.75in
	style={borderwidth=1pt bordercolor=black};

ods text = " "; * So top border is not overwritten by text;
ods text = "^S={marginleft=8pt}NOTE: Overall totals ....";
ods text = " ";
ods text = "^S={asis=on} *Leading causes of injury ... ";
ods text = "^S={asis=on} morbidity. See Appendices ...";&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and output is below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 269px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28945i8A939614A8FD45CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 17:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553368#M22657</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2019-04-23T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553410#M22658</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; We need to see ALL your code, including the ODS PDF statements. Typically, the background of ODS PDF output is white, so it appears that you might be using a different style to get a gray background in your output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; To change the style of ODS TEXT to match the style you're using for the report, you have to change the USERTEXT style element in the STYLE template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553410#M22658</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-04-23T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553614#M22659</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I didn't include the entire code because I didn't think it was relevant, and the background is shaded gray because while I'm writing the SAS code the first time, I find it helpful to set a background color other than white to help verify that I have correctly assigned the dimensions to each region. Then I remove the background color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the rest of the ODS PDF code, leaving out other regions on the page that work OK ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=portrait papersize=letter
		topmargin=0.001in bottommargin=0.001in leftmargin=0.25in rightmargin=0.25in;

ods pdf file='H:\test.pdf' notoc style=HTMLBlue startpage=no;
ods escapechar='^';

****************************************  P A G E   O N E  *************************************************************************;

ods layout start
	x=0in y=0in
        /*style={background=lightgray}*/;

..... lots of region statements with PROC REPORT statements here;

ods region x=0in y=9in width=8in height=0.75in
	style={borderwidth=1pt bordercolor=black};

ods text = " "; * So top border is not overwritten by text;
ods text = "^S={marginleft=8pt}NOTE: Overall totals ....";
ods text = " ";
ods text = "^S={asis=on} *Leading causes of injury ... ";
ods text = "^S={asis=on} morbidity. See Appendices ...";

ods layout end;&lt;BR /&gt;ods&amp;nbsp;pdf&amp;nbsp;close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 201px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28974iA9C55CAC86720BE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553614#M22659</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2019-04-24T13:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553628#M22660</link>
      <description>&lt;P&gt;I found an alternate solution -- I decided to &lt;STRONG&gt;center&lt;/STRONG&gt; each of the ODS TEXT lines in this region (by adding just=c to each text's style). That moves the beginning of each text line sufficiently right of the left-side border, so the text doesn't "overwrite" the left border line, like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods text = "^S={font_face=Tahoma fontSize=6pt color=black just=c}NOTE: Overall ... ";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capture2.png" style="width: 424px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28979iB19CB2571033901C/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture2.png" alt="capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd still be curious how to left-justify text, but not break, or overwrite, the left border.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553628#M22660</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2019-04-24T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553714#M22661</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Do you want to change the STYLE template that you use with this report? If so, then the USERTEXT style element changes the attributes for ODS TEXT strings. Here's an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change_template_usertext.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28991iA94D481E886B4920/image-size/large?v=v2&amp;amp;px=999" role="button" title="change_template_usertext.png" alt="change_template_usertext.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I had to fiddle with the height of the region. so that the y and the p did not encroach on the bottom border. I also changed the color to red in the template, so you could be sure that the template was being used for the ODS TEXT strings. Since I had the template in play, I took out the ASIS=ON and other attributes.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 17:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553714#M22661</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-04-24T17:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553947#M22663</link>
      <description>&lt;P&gt;OK, thanks! That's a nice workaround. It leaves the region border alone, and indents the "marginleft" just enough so the text starts just to the right of the border line itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually don't want to bother with PROC TEMPLATE, because I don't write that syntax very often, so I'd have to look up an example, and determine which style I need to change, and what attributes I can change, etc. I had not heard of the class "usertext" before.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 13:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553947#M22663</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2019-04-25T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - border around ODS TEXT not solid line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553975#M22664</link>
      <description>You were using STYLE=HTMLBLUE in your original posted code, so that's what I used as Parent= in the template code. However, HTMLBLUE is designed for HTML, so in production, I'd recommend using a style like Pearl which was designed for PDF. &lt;BR /&gt;The USERTEXT style element in the CLASS statement is the element that controls ODS TEXT= strings. You should be able to use my template code and only need to delete the color=red line.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 25 Apr 2019 14:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-border-around-ODS-TEXT-not-solid-line/m-p/553975#M22664</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-04-25T14:26:33Z</dc:date>
    </item>
  </channel>
</rss>

