<?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 Gridlines in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322197#M17657</link>
    <description>&lt;P&gt;If you want most of the behavior from a given style then use that as the parent and specify a NEW name for the result:&lt;/P&gt;
&lt;PRE&gt;proc template;
   define style Styles.Mysasweb;
   parent=Styles.sasweb;
run;&lt;/PRE&gt;
&lt;P&gt;Find the style element from a different style, such as styles.excel and insert those characteristics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't believe you can inherit from two parents so the you would need to post the actual styles.excel code for the Class body section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use your new style either as your default style or only on the output you want with the Style= option.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 16:43:03 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-03T16:43:03Z</dc:date>
    <item>
      <title>ODS Excel Gridlines</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322163#M17653</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two questions in regards to adding gridlines to a specific style. I have been using the style sasweb for some reporting, and I would like to retain everything about that style with the caveat that I want the gridlines to be shown in all tables/reports instead of the classic all white background that it currently shows. I tried the code below, and it does successfully show gridlines, but doesn't retain the rest of SASWEB formatting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My second question is, the code below overwrote the old sasweb formatting. Is there any way to restore the styles. library?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="LEFT"&gt;proc template;&lt;/P&gt;
&lt;P align="LEFT"&gt;define style Styles.sasweb;&lt;/P&gt;
&lt;P align="LEFT"&gt;parent=styles.excel;&lt;/P&gt;
&lt;P align="LEFT"&gt;class body / background=_undef_;&lt;/P&gt;
&lt;P align="LEFT"&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel file="test"&lt;/P&gt;
&lt;P&gt;options(sheet_name="Test")&lt;/P&gt;
&lt;P&gt;options(sheet_interval="PROC"&lt;/P&gt;
&lt;P&gt;embedded_titles="yes"&lt;/P&gt;
&lt;P&gt;embedded_footnotes="yes"&lt;/P&gt;
&lt;P&gt;embed_titltes_once="yes")&lt;/P&gt;
&lt;P&gt;style=sasweb;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 15:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322163#M17653</guid>
      <dc:creator>jacob_klimek</dc:creator>
      <dc:date>2017-01-03T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Gridlines</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322169#M17654</link>
      <description>&lt;P&gt;Just realized I can just clear out of my session for the second part. Still can't figure out the first part however.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 15:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322169#M17654</guid>
      <dc:creator>jacob_klimek</dc:creator>
      <dc:date>2017-01-03T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Gridlines</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322197#M17657</link>
      <description>&lt;P&gt;If you want most of the behavior from a given style then use that as the parent and specify a NEW name for the result:&lt;/P&gt;
&lt;PRE&gt;proc template;
   define style Styles.Mysasweb;
   parent=Styles.sasweb;
run;&lt;/PRE&gt;
&lt;P&gt;Find the style element from a different style, such as styles.excel and insert those characteristics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't believe you can inherit from two parents so the you would need to post the actual styles.excel code for the Class body section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use your new style either as your default style or only on the output you want with the Style= option.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 16:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322197#M17657</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-03T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Gridlines</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322230#M17660</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is not a good idea:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   &lt;FONT color="#FF0000"&gt;define&lt;/FONT&gt; style Styles.&lt;FONT color="#FF0000"&gt;sasweb&lt;/FONT&gt;;
   parent=styles.excel;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; I never, never, &lt;U&gt;&lt;STRONG&gt;NEVER&lt;/STRONG&gt;&lt;/U&gt;, recommend defining a style with the same name as the SAS-defined style. Anyone who uses your code will see style=sasweb and will not understand why they are not getting the same results as you are getting. And, then, if you are running a local version of SAS, I have seen people corrupt their template store accidentally by having the wrong permissions on the SAS production template store (SASHELP.TMPLMST). So, never a good idea to attempt to redefine or define a new style with the same name as an production style template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, I would expect to see:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
   define style Styles.&lt;EM&gt;&lt;STRONG&gt;newstyle&lt;/STRONG&gt;&lt;/EM&gt;;
   parent=styles.&lt;EM&gt;&lt;STRONG&gt;parentstyl&lt;/STRONG&gt;&lt;/EM&gt;e;


OR, for your code:

proc template;
   define style Styles.&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;myexcel&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;;
   parent=styles.&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;sasweb&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;;



&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; I sincerely hope that the code you posted was a typo and that you have not accidentally ruined the production version of the SASWEB style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 19:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Gridlines/m-p/322230#M17660</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-03T19:49:07Z</dc:date>
    </item>
  </channel>
</rss>

