<?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 Draw box (outside boundary for overall table) with style(report) with ODS EXCEL,style = minimal in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/808999#M25726</link>
    <description>&lt;P&gt;I try to add box line when ods excel and proc report with style=minimal.&lt;BR /&gt;Code is.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file= "/home/sasondemand/test_ods_excel.xlsx"
style =minimal
 ;

proc report data=sashelp.class(obs=10)   
style( report ) = [ background=blue frame=box ]
;
    column sex name age height weight;
    define   sex / order;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After submit, output window seems nice.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result-window.jpg" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70662i27F598707A8E0EA1/image-size/small?v=v2&amp;amp;px=200" role="button" title="result-window.jpg" alt="result-window.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But output excel is not match.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel-output.jpg" style="width: 164px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70663iBAE4E927D435BD89/image-size/small?v=v2&amp;amp;px=200" role="button" title="excel-output.jpg" alt="excel-output.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I want is like this, say simple and just outside boundary for "style(report) =[ frame=box ]"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel-final.jpg" style="width: 159px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70664i7232E0A819B75BA4/image-size/small?v=v2&amp;amp;px=200" role="button" title="excel-final.jpg" alt="excel-final.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check this problem,&amp;nbsp; found that "style=minimal" is occasionalley not good.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-ODS-ExcelXP-errors-using-STYLE-minimal/m-p/141066#M11203" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-ODS-ExcelXP-errors-using-STYLE-minimal/m-p/141066#M11203&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way for simple looks and "style(report)" is valid.&lt;/P&gt;&lt;P&gt;I can leave "style=minimal" if it have simple looks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 10:31:15 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2022-04-21T10:31:15Z</dc:date>
    <item>
      <title>Draw box (outside boundary for overall table) with style(report) with ODS EXCEL,style = minimal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/808999#M25726</link>
      <description>&lt;P&gt;I try to add box line when ods excel and proc report with style=minimal.&lt;BR /&gt;Code is.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file= "/home/sasondemand/test_ods_excel.xlsx"
style =minimal
 ;

proc report data=sashelp.class(obs=10)   
style( report ) = [ background=blue frame=box ]
;
    column sex name age height weight;
    define   sex / order;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After submit, output window seems nice.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result-window.jpg" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70662i27F598707A8E0EA1/image-size/small?v=v2&amp;amp;px=200" role="button" title="result-window.jpg" alt="result-window.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But output excel is not match.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel-output.jpg" style="width: 164px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70663iBAE4E927D435BD89/image-size/small?v=v2&amp;amp;px=200" role="button" title="excel-output.jpg" alt="excel-output.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I want is like this, say simple and just outside boundary for "style(report) =[ frame=box ]"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel-final.jpg" style="width: 159px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70664i7232E0A819B75BA4/image-size/small?v=v2&amp;amp;px=200" role="button" title="excel-final.jpg" alt="excel-final.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check this problem,&amp;nbsp; found that "style=minimal" is occasionalley not good.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-ODS-ExcelXP-errors-using-STYLE-minimal/m-p/141066#M11203" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-with-ODS-ExcelXP-errors-using-STYLE-minimal/m-p/141066#M11203&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way for simple looks and "style(report)" is valid.&lt;/P&gt;&lt;P&gt;I can leave "style=minimal" if it have simple looks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 10:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/808999#M25726</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2022-04-21T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Draw box (outside boundary for overall table) with style(report) with ODS EXCEL,style = minimal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809101#M25727</link>
      <description>Hi:&lt;BR /&gt;  In my experience, border controls that work in ODS HTML will rarely work for ODS EXCEL with simple style overrides. This might work with a style template change, but I'm not sure. Back in 2008, this user group paper talked about doing custom borders in Excel specifically with an older destination (TAGSETS.EXCELXP) and the author said: "Unfortunately borders are difficult to deal with because Excel doesn't have the concept of a table like HTML or RTF or even LaTeX. In Excel the only thing that can have borders is an individual cell. This complicates things quite a bit."&lt;BR /&gt;  With ODS EXCEL, you are creating a file that is actually package of XML "mini files" which contain the XML instructions that have to conform to the Microsoft XML standard for an XLSX file. I do not know whether a style template can be designed that does the equivalent of putting a box around all the table cells using the Excel controls. This is probably a question for SAS Tech Support. Just because you can do a box around a table in HTML, doesn't mean it will work for ODS EXCEL. I am surprised that using background=blue worked for you in HTML, though, I would have expected you to need bordercolor=blue, not background=blue.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 21 Apr 2022 16:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809101#M25727</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-04-21T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Draw box (outside boundary for overall table) with style(report) with ODS EXCEL,style = minimal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809179#M25728</link>
      <description>&lt;P&gt;Partially, I think the issue is the style chosen, Minimal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code, using style=Meadow, will put vertical borders on the table:&lt;/P&gt;
&lt;PRE&gt;ods excel file= "&amp;amp;outpath.\test_ods_excel.xlsx"
 style=meadow
 ;

proc report data=sashelp.class(obs=10)     
;
    column sex name age height weight;
    define   sex / order style=[borderleftcolor=blue borderleftwidth=2mm];
    define weight /  style=[borderrightcolor=blue borderrightwidth=2mm];
run;

ods excel close;&lt;/PRE&gt;
&lt;P&gt;But style Minimal, Journal and Analysis so likely others, don't show the right/left border. So the style has some impact.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some additional overrides, with the right style, may get the top part of the frame.&lt;/P&gt;
&lt;PRE&gt;ods excel file= "&amp;amp;outpath.\test_ods_excel.xlsx"
 style=meadow
 ;

proc report data=sashelp.class(obs=10)     
;
    column sex name age height weight;
    define   sex / order style=[borderleftcolor=blue borderleftwidth=2mm]
                       style(header)=[bordertopcolor=blue bordertopwidth=2mm
                                      borderleftcolor=blue borderleftwidth=2mm];
    define name /    style(header)=[bordertopcolor=blue bordertopwidth=2mm];
    define age /     style(header)=[bordertopcolor=blue bordertopwidth=2mm];
    define height/   style(header)=[bordertopcolor=blue bordertopwidth=2mm];
    define weight /  style=[borderrightcolor=blue borderrightwidth=2mm]
                      style(header)=[bordertopcolor=blue bordertopwidth=2mm
                                    borderrightcolor=blue borderrightwidth=2mm];
run;

ods excel close;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 21:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809179#M25728</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-21T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Draw box (outside boundary for overall table) with style(report) with ODS EXCEL,style = minimal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809254#M25729</link>
      <description>Hi, Cynthia_sas&lt;BR /&gt;Thank you so much for your comment as I can believe that I should avoid "style=minimal" for my desire.</description>
      <pubDate>Fri, 22 Apr 2022 10:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809254#M25729</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2022-04-22T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Draw box (outside boundary for overall table) with style(report) with ODS EXCEL,style = minimal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809257#M25730</link>
      <description>Thank you for your detailed examples !!</description>
      <pubDate>Fri, 22 Apr 2022 10:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Draw-box-outside-boundary-for-overall-table-with-style-report/m-p/809257#M25730</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2022-04-22T10:49:22Z</dc:date>
    </item>
  </channel>
</rss>

