<?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 Text Underline in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/335152#M18005</link>
    <description>&lt;P&gt;A customer raised the&amp;nbsp;same problem. I tried&amp;nbsp;&lt;SPAN&gt;TEXTDECORATION = UNDERLINE, but did not work for ODS TEXT for whatever reason.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only the following PROC ODSTEXT statement gave acceptable results in the PDF document. I also noted that PROC ODSTEXT does not inherit&amp;nbsp;the UserText style elements that ODS TEXT uses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc odstext;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;p "BUSINESS RULES" / &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style=[font_size = 10pt &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreground = black &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;font_weight = bold &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;borderbottomcolor = black&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;borderbottomwidth = 0.1pt&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;background = white];&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* The next line also needed a top margin to apply line spacing */&lt;/P&gt;
&lt;P&gt;ods text&amp;nbsp;= "^S={font_size = 8pt font_style = italic margintopwidth = 8pt}Incidents&amp;nbsp;Reported is based on head office&amp;nbsp;received date.";&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2017 00:03:09 GMT</pubDate>
    <dc:creator>boschy</dc:creator>
    <dc:date>2017-02-23T00:03:09Z</dc:date>
    <item>
      <title>ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246896#M15172</link>
      <description>&lt;P&gt;I'm having an issue with my underlines not fully covering all the text I am trying to underline. The code I am using is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods text='^S={font=("Times New Roman",8pt,bold) textdecoration=underline}RECIPIENT DATA';&lt;/PRE&gt;&lt;P&gt;But the output is showing as this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="sampleunderline.png" alt="sampleunderline.png" src="https://communities.sas.com/t5/image/serverpage/image-id/1672i656240798A0749C3/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 14:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246896#M15172</guid>
      <dc:creator>ksnyder1</dc:creator>
      <dc:date>2016-01-29T14:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246905#M15173</link>
      <description>&lt;P&gt;That looks to be more the renderer than SAS. &amp;nbsp;What is the output destination? &amp;nbsp;Is it Word (which is notoriously bad at headings and such like since the Navigation object came in).&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246905#M15173</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-29T15:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246907#M15174</link>
      <description>&lt;P&gt;I'm outputting straight to an adobe acrobat pdf.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246907#M15174</guid>
      <dc:creator>ksnyder1</dc:creator>
      <dc:date>2016-01-29T15:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246912#M15175</link>
      <description>&lt;P&gt;Does it work without the BOLD?&lt;/P&gt;
&lt;P&gt;I'm thinking that what ever calculates lengths might not quite get the character modification from the BOLD option correct. Try the "Times New Roman Bold" font if you have it available.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246912#M15175</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-29T15:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246916#M15177</link>
      <description>&lt;P&gt;Even completely removing the font statement from the style statement doesn't fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could the regions and proc report directly below it have an impact?&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example this section does the same thing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods layout start width=7in height = 11in;
ods region x = .25in y = 0in width= 4in height = 4in;
ods text = '^S={font=("Times New Roman",8pt,bold) textdecoration=underline}EMPLOYER RENEWAL FORMS';
ods region x = .25in y = .25in width= 4in height = 4in;
proc report data=renewal_data&amp;amp;yr.;
	columns status cnt;
	
	define status / display '' style=[cellwidth=2.0in];
	define cnt    / display '' format=comma9. style=[cellwidth=0.5in];
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/246916#M15177</guid>
      <dc:creator>ksnyder1</dc:creator>
      <dc:date>2016-01-29T15:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/247013#M15186</link>
      <description>Hi, I doubt that the PROC REPORT step would be impacting the ODS TEXT=. When I ran this simple test, just using nothing but ODS TEXT and a modified form of your style override, I got the same results. I was playing around with font and size and bold separately and I wanted to be sure they were all separate, so I split out the FONT= that you had into separate values. I also played with the "old" syntax vs the "new" syntax and that didn't make a difference.&lt;BR /&gt;&lt;BR /&gt;I think you should open a track with Tech Support on this.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;My test code:&lt;BR /&gt;ods escapechar='^';&lt;BR /&gt; &lt;BR /&gt;ods pdf file='c:\temp\test_underlineyyy.pdf' startpage=no;&lt;BR /&gt;ods text='^S={fontfamily="Times New Roman" fontsize=8pt fontweight=bold textdecoration=underline}RECIPIENT DATA';&lt;BR /&gt;ods text='^{style[fontfamily="Times New Roman" fontsize=8pt fontweight=bold textdecoration=underline]RECIPIENT DATA}';&lt;BR /&gt;proc print data=sashelp.class(obs=3);&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;</description>
      <pubDate>Sat, 30 Jan 2016 02:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/247013#M15186</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-01-30T02:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/247155#M15197</link>
      <description>&lt;P&gt;It worked for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you pad some characters after it and make underline longer ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods pdf file='/folders/myfolders/x.pdf';
ods escapechar='^';
ods text="^S={font=('Times New Roman',8pt,bold) textdecoration=underline}RECIPIENT DATA ^S={color=white}dummy";
proc print data=sashelp.class;run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Feb 2016 03:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/247155#M15197</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-02-01T03:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF Text Underline</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/335152#M18005</link>
      <description>&lt;P&gt;A customer raised the&amp;nbsp;same problem. I tried&amp;nbsp;&lt;SPAN&gt;TEXTDECORATION = UNDERLINE, but did not work for ODS TEXT for whatever reason.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only the following PROC ODSTEXT statement gave acceptable results in the PDF document. I also noted that PROC ODSTEXT does not inherit&amp;nbsp;the UserText style elements that ODS TEXT uses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc odstext;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;p "BUSINESS RULES" / &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style=[font_size = 10pt &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreground = black &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;font_weight = bold &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;borderbottomcolor = black&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;borderbottomwidth = 0.1pt&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;background = white];&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* The next line also needed a top margin to apply line spacing */&lt;/P&gt;
&lt;P&gt;ods text&amp;nbsp;= "^S={font_size = 8pt font_style = italic margintopwidth = 8pt}Incidents&amp;nbsp;Reported is based on head office&amp;nbsp;received date.";&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 00:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Text-Underline/m-p/335152#M18005</guid>
      <dc:creator>boschy</dc:creator>
      <dc:date>2017-02-23T00:03:09Z</dc:date>
    </item>
  </channel>
</rss>

