<?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: specifying borders on specific cells in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60691#M7234</link>
    <description>Hi: Some of the style attributes may be SAS 9.2 attributes. I think there were some of these borderxxx attributes that were pre-prodution for RTF only. (http://support.sas.com/rnd/base/ods/odsrtf/rtf901.html) So they might not work for other destinations if you're not at SAS 9.2. &lt;BR /&gt;
&lt;BR /&gt;
Also, the other thing that you could be running into is the PLACE where you're trying to use the attribute is not an OK place. For example, you are trying to use the attribute on the PROC REPORT statement, but the attribute can only be used on the DEFINE or RBREAK (and other statements) inside Proc Report. In a CALL DEFINE statement, you should be able to alter attributes that are CELL related (but not TABLE related). In other words, a CALL DEFINE for a particular column or calculated report item would not be able to alter the style for the -whole- table. &lt;BR /&gt;
&lt;BR /&gt;
To find out which situation you're running into, your best bet for help might be to contact SAS Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
Also, here are some useful links from the 9.2 doc:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm#a001047947" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm#a001047947&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/stylesinprocs.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/stylesinprocs.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 12 Nov 2008 15:29:20 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-11-12T15:29:20Z</dc:date>
    <item>
      <title>ExcelXP: specifying borders on specific cells</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60687#M7230</link>
      <description>I'm using the most recent version of ExcelXP to create spreadsheets.  I have some particular cells I want to add a bottom border two.  I figured out how to use compute blocks to change the formatting on those cells but not how to change borders.  &lt;BR /&gt;
&lt;BR /&gt;
I would like to know how to modify the formatting below to include a bottom border for each of these cells.  I tried htmlstyle= but that didn't work.  Any clues?&lt;BR /&gt;
&lt;BR /&gt;
compute ttl_svngs;&lt;BR /&gt;
  if rptline=50 then call define(_col_,'style','style=[background=silver font_weight=bold]');&lt;BR /&gt;
  else if rptline=23 then call define(_col_,'style','style=[font_weight=bold]');&lt;BR /&gt;
endcomp;</description>
      <pubDate>Tue, 11 Nov 2008 00:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60687#M7230</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-11T00:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP: specifying borders on specific cells</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60688#M7231</link>
      <description>Hello Anita,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Add &lt;BR /&gt;
&lt;BR /&gt;
borderbottomstyle=solid  borderbottomwidth=2  borderbottomcolor=black&lt;BR /&gt;
&lt;BR /&gt;
to your style.  Of course you can use other values, although Excel doesn't do much with&lt;BR /&gt;
width, there is really only 1-4 for that.   &lt;BR /&gt;
&lt;BR /&gt;
The border style can have a lot of settings.   The ODS style is on the left, the corresponding Excel style is on the right.  Excel doesn't have as many as ODS does.&lt;BR /&gt;
Use the ODS style in your over rides, it is case insensitive.&lt;BR /&gt;
&lt;BR /&gt;
DOTTED   "Dot";&lt;BR /&gt;
DASHED   "Dash";&lt;BR /&gt;
SOLID       "Continuous";&lt;BR /&gt;
DOUBLE   "Double";&lt;BR /&gt;
GROOVE  "DashDot";&lt;BR /&gt;
RIDGE      "DashDotDot";&lt;BR /&gt;
INSET      "SlashDashDot";&lt;BR /&gt;
OUTSET   "Continuous";&lt;BR /&gt;
HIDDEN    "None";</description>
      <pubDate>Tue, 11 Nov 2008 16:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60688#M7231</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2008-11-11T16:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP: specifying borders on specific cells</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60689#M7232</link>
      <description>Thanks Eric,&lt;BR /&gt;
&lt;BR /&gt;
I tried adding borderbottomstyle= etc to the style in my call define but I got the error message "ERROR 22-322: Syntax error, expecting one of the following: ;, ABSTRACT, ACTIVELINKCOLOR, ASIS, BACKGROUND, BACKGROUNDIMAGE, BODYSCROLLBAR, BODYSIZE,..."   It doesn't know those particular attributes.&lt;BR /&gt;
&lt;BR /&gt;
I know how to make my own style with proc template but I can't figure out how to apply that style in a call define.</description>
      <pubDate>Tue, 11 Nov 2008 16:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60689#M7232</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-11T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP: specifying borders on specific cells</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60690#M7233</link>
      <description>Ok.  I remember that was a problem in SAS 9.1.3.  The extra border top, bottom, right and left&lt;BR /&gt;
style attributes did not work as style over rides.&lt;BR /&gt;
&lt;BR /&gt;
They do work in a proc template style.  So if you create a style element with those attributes&lt;BR /&gt;
you can use that style element as your over ride.&lt;BR /&gt;
&lt;BR /&gt;
Proc template;&lt;BR /&gt;
&lt;BR /&gt;
   style styles.mystyle;&lt;BR /&gt;
           parent=styles.Journal;&lt;BR /&gt;
&lt;BR /&gt;
           define bottom_data from data/&lt;BR /&gt;
                  borderbottomstyle=solid&lt;BR /&gt;
                  borderbottomwidth=2&lt;BR /&gt;
                  borderbottomcolor=black&lt;BR /&gt;
           ;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc report ....&lt;BR /&gt;
&lt;BR /&gt;
call define ....   /style=bottom_data[ other over rides here ];</description>
      <pubDate>Wed, 12 Nov 2008 15:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60690#M7233</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2008-11-12T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP: specifying borders on specific cells</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60691#M7234</link>
      <description>Hi: Some of the style attributes may be SAS 9.2 attributes. I think there were some of these borderxxx attributes that were pre-prodution for RTF only. (http://support.sas.com/rnd/base/ods/odsrtf/rtf901.html) So they might not work for other destinations if you're not at SAS 9.2. &lt;BR /&gt;
&lt;BR /&gt;
Also, the other thing that you could be running into is the PLACE where you're trying to use the attribute is not an OK place. For example, you are trying to use the attribute on the PROC REPORT statement, but the attribute can only be used on the DEFINE or RBREAK (and other statements) inside Proc Report. In a CALL DEFINE statement, you should be able to alter attributes that are CELL related (but not TABLE related). In other words, a CALL DEFINE for a particular column or calculated report item would not be able to alter the style for the -whole- table. &lt;BR /&gt;
&lt;BR /&gt;
To find out which situation you're running into, your best bet for help might be to contact SAS Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
Also, here are some useful links from the 9.2 doc:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm#a001047947" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002972093.htm#a001047947&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/stylesinprocs.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/stylesinprocs.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 12 Nov 2008 15:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60691#M7234</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-11-12T15:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP: specifying borders on specific cells</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60692#M7235</link>
      <description>I wrote a paper last year that, among other things, shows how to do borders in Excel with proc report.&lt;BR /&gt;
&lt;BR /&gt;
The very last part of the paper uses a SAS 9.2 feature of proc report,  style/merge.&lt;BR /&gt;
But everything else is applicable to SAS 9.1.3.   &lt;BR /&gt;
&lt;BR /&gt;
Specifically, the use of the border attributes by creating a style template instead of using them&lt;BR /&gt;
in the over rides which doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2008/036-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/036-2008.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The HTML destination also supports the border attributes.</description>
      <pubDate>Wed, 12 Nov 2008 18:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-specifying-borders-on-specific-cells/m-p/60692#M7235</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2008-11-12T18:12:01Z</dc:date>
    </item>
  </channel>
</rss>

