<?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: how can i change the background-color of html body in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29958#M4533</link>
    <description>Rather than sending you back to the (awful) proc template doc, here is a method that always works. &lt;BR /&gt;
&lt;BR /&gt;
1- List your style components.&lt;BR /&gt;
&lt;B&gt;      proc template; &lt;BR /&gt;
        source  styles.sasweb;&lt;BR /&gt;
      run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
2- Spot the line(s) you want to update.&lt;BR /&gt;
      Here, that would be     &lt;BR /&gt;
&lt;B&gt;          'docbg' = color_list('bgA');&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
3- Re-run the code that step one generated, after changing what you want, and create your new style: &lt;BR /&gt;
3.1) The procedure call becomes&lt;BR /&gt;
&lt;B&gt;proc template;&lt;BR /&gt;
 define style Styles.Sasweb2;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
3.2) The color list has a new color&lt;BR /&gt;
 &lt;B&gt;  style color_list&lt;BR /&gt;
      "Colors used in the default style" /&lt;BR /&gt;
      'fgD1' = cx666666&lt;BR /&gt;
      'fgC1' = cxCCCCCC&lt;BR /&gt;
      'fgB1' = cx000000&lt;BR /&gt;
      'bgA1' = cx6495ED&lt;BR /&gt;
      'fgA' = cx003399&lt;BR /&gt;
      'bgA' = cxffffff&lt;BR /&gt;
      'NEWBGCOL'=CXFF0000;&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
3.3)The color definition for document background becomes&lt;BR /&gt;
 &lt;B&gt;     'docbg' = color_list('NEWBGCOL');&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Done! Call your custom style from now on.&lt;BR /&gt;
&lt;BR /&gt;
I know there is a better way, where you call the parent's styles and just overwrite what you need, but the time needed to learn how to use proc template properly vs the very rare occasions when it is needed makes the investment not worth it (in my case at least). I would have thought there would be a code-generating GUI by now to design customs styles.</description>
    <pubDate>Tue, 12 May 2009 23:56:14 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2009-05-12T23:56:14Z</dc:date>
    <item>
      <title>how can i change the background-color of html body</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29956#M4531</link>
      <description>hi:&lt;BR /&gt;
I output a report with ods html with the style of sasweb,and the style of body is as following:&lt;BR /&gt;
.Body&lt;BR /&gt;
{&lt;BR /&gt;
  font-family: 'MS Hei', GothicBBB, Arial, Helvetica, sans-serif;&lt;BR /&gt;
  font-size: x-small;&lt;BR /&gt;
  font-weight: normal;&lt;BR /&gt;
  font-style: normal;&lt;BR /&gt;
  color: #003399;&lt;BR /&gt;
  background-color: #FFFFFF;&lt;BR /&gt;
  margin-left: 8px;&lt;BR /&gt;
  margin-right: 8px;&lt;BR /&gt;
}&lt;BR /&gt;
Now,I want to change the background-color,is it possible?&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 11 May 2009 07:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29956#M4531</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-11T07:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: how can i change the background-color of html body</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29957#M4532</link>
      <description>Have a look at the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website and the SAS ODS documentation resources, particularly using PROC TEMPLATE.  You will find product documentation and also supplemental technical papers on the topic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 11 May 2009 15:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29957#M4532</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-11T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: how can i change the background-color of html body</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29958#M4533</link>
      <description>Rather than sending you back to the (awful) proc template doc, here is a method that always works. &lt;BR /&gt;
&lt;BR /&gt;
1- List your style components.&lt;BR /&gt;
&lt;B&gt;      proc template; &lt;BR /&gt;
        source  styles.sasweb;&lt;BR /&gt;
      run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
2- Spot the line(s) you want to update.&lt;BR /&gt;
      Here, that would be     &lt;BR /&gt;
&lt;B&gt;          'docbg' = color_list('bgA');&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
3- Re-run the code that step one generated, after changing what you want, and create your new style: &lt;BR /&gt;
3.1) The procedure call becomes&lt;BR /&gt;
&lt;B&gt;proc template;&lt;BR /&gt;
 define style Styles.Sasweb2;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
3.2) The color list has a new color&lt;BR /&gt;
 &lt;B&gt;  style color_list&lt;BR /&gt;
      "Colors used in the default style" /&lt;BR /&gt;
      'fgD1' = cx666666&lt;BR /&gt;
      'fgC1' = cxCCCCCC&lt;BR /&gt;
      'fgB1' = cx000000&lt;BR /&gt;
      'bgA1' = cx6495ED&lt;BR /&gt;
      'fgA' = cx003399&lt;BR /&gt;
      'bgA' = cxffffff&lt;BR /&gt;
      'NEWBGCOL'=CXFF0000;&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
3.3)The color definition for document background becomes&lt;BR /&gt;
 &lt;B&gt;     'docbg' = color_list('NEWBGCOL');&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Done! Call your custom style from now on.&lt;BR /&gt;
&lt;BR /&gt;
I know there is a better way, where you call the parent's styles and just overwrite what you need, but the time needed to learn how to use proc template properly vs the very rare occasions when it is needed makes the investment not worth it (in my case at least). I would have thought there would be a code-generating GUI by now to design customs styles.</description>
      <pubDate>Tue, 12 May 2009 23:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29958#M4533</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-05-12T23:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can i change the background-color of html body</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29959#M4534</link>
      <description>Thanks for your reply!I have spent so mush time on the proc template doc,but it works now.It's horrible!</description>
      <pubDate>Wed, 13 May 2009 01:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29959#M4534</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-13T01:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can i change the background-color of html body</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29960#M4535</link>
      <description>Agreed.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Glad it works.</description>
      <pubDate>Wed, 13 May 2009 05:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-can-i-change-the-background-color-of-html-body/m-p/29960#M4535</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-05-13T05:08:00Z</dc:date>
    </item>
  </channel>
</rss>

