<?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: &amp;quot;BorderWidth=0&amp;quot; and &amp;quot;Rules=NONE&amp;quot; doesn't work (?) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4302#M1770</link>
    <description>Hi:&lt;BR /&gt;
  Generally you also need to set CELLSPACING=0 when you are setting RULES=NONE. As I said above, there is an interaction between many of the style attributes allowed for tables and different destinations may interpret those attributes differently.&lt;BR /&gt;
 &lt;BR /&gt;
  No single style template will work for HTML, RTF and PDF. I find that I generally need to have separate templates for each of the destinations -- although I can usually get by with just 2 -- one for HTML and a second for RTF and PDF.&lt;BR /&gt;
&lt;BR /&gt;
  I don't understand what you mean by "no formatting for PDF reports are showing"...when I execute this code, I get a thick red border around the table.&lt;BR /&gt;
 &lt;BR /&gt;
  If you are having trouble with style attributes and understanding how the attributes all work together, your best bet might be to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\wideborder.html' style=sasweb;&lt;BR /&gt;
ods rtf file='c:\temp\wideborder.rtf';&lt;BR /&gt;
ods pdf file='c:\temp\wideborder.pdf';&lt;BR /&gt;
     &lt;BR /&gt;
  proc print data=sashelp.class&lt;BR /&gt;
       style(table)={rules=none cellspacing=0&lt;BR /&gt;
                     frame=box borderwidth=10&lt;BR /&gt;
                     bordercolor=red};&lt;BR /&gt;
  title 'SASHELP.CLASS';&lt;BR /&gt;
  run;&lt;BR /&gt;
   &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 22 Oct 2007 15:33:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-10-22T15:33:46Z</dc:date>
    <item>
      <title>"BorderWidth=0" and "Rules=NONE" doesn't work (?)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4299#M1767</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I'm currently trying to produce tables in a RTF format (without any line/border in the table). Thus, I use the following proc template using the option "BorderWidth=0" and "Rules=NONE", but this doesn't work:&lt;BR /&gt;
&lt;BR /&gt;
Proc Template;&lt;BR /&gt;
Define Style Style_GLD;&lt;BR /&gt;
Style Table / BorderColor=black BorderWidth=0 font_face=TIMES Rules=NONE;&lt;BR /&gt;
Style Body / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
Style Systemtitle / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
Style Systemfooter / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
Style SysTitleAndFooterContainer / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
Style NoteContent / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
Style Header / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
Style Data / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
End;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
Do you understand what is my problem??&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
&lt;BR /&gt;
Violaine</description>
      <pubDate>Thu, 23 Aug 2007 09:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4299#M1767</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-23T09:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: "BorderWidth=0" and "Rules=NONE" doesn't work (?)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4300#M1768</link>
      <description>Hi Violaine:&lt;BR /&gt;
&lt;BR /&gt;
When you open your RTF file with Word, you may still see faint gray gridlines -- which is affected by the Show/Hide Gridlines on the Word pull-down menu -- there is no RTF way to touch the Word menus as described in this Tech Support Note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/040/FAQ04024.html" target="_blank"&gt;http://support.sas.com/faq/040/FAQ04024.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
If  I try your code in SAS 9.1.3 and open the resulting document with Word, if I have Show Gridlines toggled on, then I still see faint gray gridlines (although they are NOT there when I print). If I have Hide Gridlines toggled on, then I do not see any gridlines for your output.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods path work.tmp(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
    &lt;BR /&gt;
Proc Template;&lt;BR /&gt;
Define Style Style_GLD;&lt;BR /&gt;
       Style Table / BorderColor=black BorderWidth=0 font_face=TIMES Rules=none;&lt;BR /&gt;
       Style Body / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
       Style Systemtitle / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
       Style Systemfooter / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
       Style SysTitleAndFooterContainer / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
       Style NoteContent / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
       Style Header / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
       Style Data / protectspecialchars = off font_face=TIMES;&lt;BR /&gt;
End;&lt;BR /&gt;
Run;&lt;BR /&gt;
    &lt;BR /&gt;
ods rtf file='c:\temp\trystyle.rtf' style=style_GLD;&lt;BR /&gt;
  proc print data=sashelp.class;&lt;BR /&gt;
    title 'trying style_GLD';&lt;BR /&gt;
  run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
There are a LOT of SAS Tech Support FAQ on removing gridlines -- since there are different ways to do it. And, different destinations can interact with the same style attributes differently.  Generally, there is an interaction between cellspacing and table background color -- if cellspacing is greater than 0, then the table background color can show through the cellspacing value. One way to make sure this doesn't happen is to set cellspacing to 0 and the other way to make sure this doesn't happen is to _UNDEF_ (undefine or remove) the table background color.&lt;BR /&gt;
 &lt;BR /&gt;
These are a bunch of reading on the subject:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/samples/index.jsp?sid=286" target="_blank"&gt;http://support.sas.com/ctx/samples/index.jsp?sid=286&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/042/FAQ04218.html" target="_blank"&gt;http://support.sas.com/faq/042/FAQ04218.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03995.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03995.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03996.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03996.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03997.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03997.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03998.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03998.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/032/FAQ03224.html" target="_blank"&gt;http://support.sas.com/faq/032/FAQ03224.html&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
There are a few things I don't understand about your code -- since you have borderwidth of 0, why even bother to set bordercolor to black? Do you want a black border around the whole table?&lt;BR /&gt;
&lt;BR /&gt;
For more help with style templates, you might consider contacting Tech Support. &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 23 Aug 2007 15:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4300#M1768</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-23T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: "BorderWidth=0" and "Rules=NONE" doesn't work (?)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4301#M1769</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I newbie to using SAS and having a few problems relating to ODS reporting.&lt;BR /&gt;
&lt;BR /&gt;
Any idea why my reports look different under ODS RTF FILE =, ODS PDF FILE =, and ODS HTML FILE =. Content wise the reports look similar, but no formatting for the PDF reports are showing and I cannot make the borders on the RFT output darker or wider.&lt;BR /&gt;
&lt;BR /&gt;
I am using style = {} etc. Is there a chance I don't have the proper utilities installed on my machine?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Mon, 22 Oct 2007 14:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4301#M1769</guid>
      <dc:creator>444970</dc:creator>
      <dc:date>2007-10-22T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: "BorderWidth=0" and "Rules=NONE" doesn't work (?)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4302#M1770</link>
      <description>Hi:&lt;BR /&gt;
  Generally you also need to set CELLSPACING=0 when you are setting RULES=NONE. As I said above, there is an interaction between many of the style attributes allowed for tables and different destinations may interpret those attributes differently.&lt;BR /&gt;
 &lt;BR /&gt;
  No single style template will work for HTML, RTF and PDF. I find that I generally need to have separate templates for each of the destinations -- although I can usually get by with just 2 -- one for HTML and a second for RTF and PDF.&lt;BR /&gt;
&lt;BR /&gt;
  I don't understand what you mean by "no formatting for PDF reports are showing"...when I execute this code, I get a thick red border around the table.&lt;BR /&gt;
 &lt;BR /&gt;
  If you are having trouble with style attributes and understanding how the attributes all work together, your best bet might be to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\wideborder.html' style=sasweb;&lt;BR /&gt;
ods rtf file='c:\temp\wideborder.rtf';&lt;BR /&gt;
ods pdf file='c:\temp\wideborder.pdf';&lt;BR /&gt;
     &lt;BR /&gt;
  proc print data=sashelp.class&lt;BR /&gt;
       style(table)={rules=none cellspacing=0&lt;BR /&gt;
                     frame=box borderwidth=10&lt;BR /&gt;
                     bordercolor=red};&lt;BR /&gt;
  title 'SASHELP.CLASS';&lt;BR /&gt;
  run;&lt;BR /&gt;
   &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 22 Oct 2007 15:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/quot-BorderWidth-0-quot-and-quot-Rules-NONE-quot-doesn-t-work/m-p/4302#M1770</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-22T15:33:46Z</dc:date>
    </item>
  </channel>
</rss>

