<?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: ExcelXP - cannot print borders on last row of table without summarizing values in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/230135#M14504</link>
    <description>&lt;P&gt;I would try the existing code first with the updated tagset just to see if there is any difference.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2015 18:48:20 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-10-15T18:48:20Z</dc:date>
    <item>
      <title>ExcelXP - cannot print borders on last row of table without summarizing values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/229984#M14489</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do the following:&lt;/P&gt;
&lt;P&gt;1. Create a table using ExcelXP&lt;/P&gt;
&lt;P&gt;2. Table outer borders=2 and inner borders=1 Without using the rbreak after/summarize option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't use the summarize option because the rows in my dataset have overlap (e.g. 1 row is all of US, the next row is only Hawaii,..) so summarizing the values would be wrong. &amp;nbsp;The part I am really stuck on is how do you add a line to the bottom of the table similar to how rbreak after/summarize allows &amp;nbsp;you to do without actually printing out a summary of values. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS EG version&amp;nbsp;9.02.02M3P041310&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code shows the format of the table I want except for two problems:&lt;/P&gt;
&lt;P&gt;1. &amp;nbsp;I don't want to print a summary row of data at the end&lt;/P&gt;
&lt;P&gt;2. &amp;nbsp;The summary entry by rbreak after/summarize has&amp;nbsp;an extra border at the bottom&amp;nbsp;right due to having to code a thick border on the right border of the table in my cell entry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to get around this? &amp;nbsp;A few options I have kicked around seem less than perfect:&lt;/P&gt;
&lt;P&gt;1. Use rbreak after/summarize and then use a compute after statement to zero out all of the fields, but I still get the straggler borders in the summary when I code field level borders&lt;/P&gt;
&lt;P&gt;2. Use a table border of thickness 2 and then for each field, check and make sure that it isn't the first or last record of the dataset. &amp;nbsp;If it isn't, then override the border of every field to use borderbottom and bordertop of 1. This way, the bottom and top of the table still have a border of 2 but interior has a border of 1. &amp;nbsp;This seems like an ok solution but wanted to see if there was something better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have included 2 files, one is the code I pasted below and referenced above and the other is a comparison of what SAS spits out and what I wanted it to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Raj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code below&lt;/P&gt;
&lt;P&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;Define style styles.custom; /*Defines new style named "custom"*/&lt;/P&gt;
&lt;P&gt;Parent=styles.journal; /*determines parent style to borrow qualities from*/&lt;/P&gt;
&lt;P&gt;style systitleandfootercontainer from systitleandfootercontainer/borderwidth=0;&lt;BR /&gt;Style table from table /background=transparent borderwidth=1 bordercolor=black;&lt;BR /&gt;style header from header /borderwidth=2 bordercolor=black;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;** show that template works with TABULATE and REPORT;&lt;BR /&gt;ods tagsets.excelxp options(embedded_titles='yes' embedded_footnotes='no' gridlines='yes')&lt;BR /&gt;file="test_TableFormat.xml" &lt;BR /&gt;style=styles.custom;&lt;/P&gt;
&lt;P&gt;Title1 BOLD J=LEFT "TEST FORMATS";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; proc report data=sashelp.class Missing Spacing=2 nowindows split='*';&lt;BR /&gt; column height weight&lt;/P&gt;
&lt;P&gt;('General Statistics'&lt;BR /&gt; ('Age' age)&lt;BR /&gt; ('Demographics' height_out weight_out)&lt;BR /&gt; );&lt;/P&gt;
&lt;P&gt;define name / group 'Student*Name' left ;&lt;BR /&gt; define sex / group 'Gender' right ;&lt;BR /&gt; define age / group 'Age';&lt;BR /&gt; define height / analysis noprint; &lt;BR /&gt; define weight / analysis noprint; &lt;BR /&gt; define height_out / computed 'Height*(inches)' center;&lt;BR /&gt; define weight_out / computed 'Weight*(pounds)' style(column)={borderrightcolor=black borderrightwidth=2 bordertopcolor=black bordertopwidth=1} center;&lt;/P&gt;
&lt;P&gt;Compute height_out; height_out=height.sum;EndComp;&lt;BR /&gt; Compute weight_out; weight_out=weight.sum;EndComp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;rbreak after / summarize&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; style={&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; font_weight=bold bordertopwidth=2 bordertopcolor=black};&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;/*I want to get rid of rbreak, but then I won't get a solid border at the bottom of my table*/&lt;BR /&gt; run; quit;&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;
&lt;P&gt;ods listing;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 22:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/229984#M14489</guid>
      <dc:creator>rjroland</dc:creator>
      <dc:date>2015-10-14T22:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - cannot print borders on last row of table without summarizing values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/229986#M14490</link>
      <description>&lt;P&gt;Are you using the latest Excelxp tagset? In your SAS log you will see a note like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: This is the Excel XP tagset (Compatible with SAS 9.1.3 and above, v1.130, 08/02/2013). Add options(doc='help') to the ods&amp;nbsp;statement for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are not using the latest version V1.130 download it from&amp;nbsp;here:&amp;nbsp;&lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and see if that fixes your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 23:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/229986#M14490</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-14T23:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - cannot print borders on last row of table without summarizing values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/230042#M14497</link>
      <description>&lt;P&gt;Thanks Saskiwi, I currently have the following version: &amp;nbsp;This is the Excel XP tagset (Compatible with SAS 9.1.3 and above, v1.94, 09/09/12).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the updated&amp;nbsp;version is installed, is there a recommended method to get what I had listed, which is a&amp;nbsp;different set of borders for the table vs. the interior gridlines of the table without using the rbreak after/summarize option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Raj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/230042#M14497</guid>
      <dc:creator>rjroland</dc:creator>
      <dc:date>2015-10-15T10:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - cannot print borders on last row of table without summarizing values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/230135#M14504</link>
      <description>&lt;P&gt;I would try the existing code first with the updated tagset just to see if there is any difference.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 18:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-cannot-print-borders-on-last-row-of-table-without/m-p/230135#M14504</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-15T18:48:20Z</dc:date>
    </item>
  </channel>
</rss>

