<?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 excel and borders - do you have a smarter way of adding those borders? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-and-borders-do-you-have-a-smarter-way-of-adding-those/m-p/786747#M25508</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\test.xlsx"  
          options(start_at='2,2');

proc report data=sashelp.class nowd 
style(column)={
 borderleftcolor=white borderleftwidth=2
 borderrightcolor=white borderrightwidth=2
 bordertopcolor=white bordertopwidth=2 
 borderbottomcolor=white borderbottomwidth=2 }
style(header)={
 borderleftcolor=cxEDF2F9 borderleftwidth=2
 borderrightcolor=cxEDF2F9 borderrightwidth=2
 bordertopcolor=black bordertopwidth=2 
 borderbottomcolor=black borderbottomwidth=2 }
;
compute weight;
if name='William' then call define(_row_,'style','style={
borderbottomcolor=black borderbottomwidth=2
}');
endcomp;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1640011329917.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66891iFCF1DCFAFFF5C9D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1640011329917.png" alt="Ksharp_0-1640011329917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 14:42:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-12-20T14:42:16Z</dc:date>
    <item>
      <title>ods excel and borders - do you have a smarter way of adding those borders?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-and-borders-do-you-have-a-smarter-way-of-adding-those/m-p/786725#M25506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Given that frame= and rules= don't seem to be taken into account in the ods excel destination, I was wondering whether there would be a smarter ways of of adding the borders than this one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="border.JPG" style="width: 328px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66876iBC76A72514EF1C53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="border.JPG" alt="border.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data class;
   set sashelp.class end=_eof;
   eof=_eof;
run;

ods excel file="&amp;amp;xxtest./reporting/test.xlsx" 
          options(start_at='2,2');

proc report data=class 
           style(column header)=[borderstyle = hidden
                                 borderstyle = hidden]
           style(header)=[bordertopstyle    = solid
                          bordertopcolor    = red
                          borderbottomstyle = solid
                          borderbottomcolor = blue];
    column eof name--height;
    define eof / display noprint;
    compute eof;
        if eof=1 then call define(_row_,'style','style=[borderbottomstyle=solid 
                                                        borderbottomcolor=red]');
    endcomp;
run;

ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Dec 2021 12:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-and-borders-do-you-have-a-smarter-way-of-adding-those/m-p/786725#M25506</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-12-20T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel and borders - do you have a smarter way of adding those borders?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-and-borders-do-you-have-a-smarter-way-of-adding-those/m-p/786747#M25508</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\test.xlsx"  
          options(start_at='2,2');

proc report data=sashelp.class nowd 
style(column)={
 borderleftcolor=white borderleftwidth=2
 borderrightcolor=white borderrightwidth=2
 bordertopcolor=white bordertopwidth=2 
 borderbottomcolor=white borderbottomwidth=2 }
style(header)={
 borderleftcolor=cxEDF2F9 borderleftwidth=2
 borderrightcolor=cxEDF2F9 borderrightwidth=2
 bordertopcolor=black bordertopwidth=2 
 borderbottomcolor=black borderbottomwidth=2 }
;
compute weight;
if name='William' then call define(_row_,'style','style={
borderbottomcolor=black borderbottomwidth=2
}');
endcomp;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1640011329917.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66891iFCF1DCFAFFF5C9D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1640011329917.png" alt="Ksharp_0-1640011329917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 14:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-and-borders-do-you-have-a-smarter-way-of-adding-those/m-p/786747#M25508</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-12-20T14:42:16Z</dc:date>
    </item>
  </channel>
</rss>

