<?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 Adding a background behind table in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/692985#M24592</link>
    <description>&lt;P&gt;I want to add a simple grey background behind a table in a pdf. I can put a grey bar as a background image for text, but can't seem to do it for a table. Is there an option to create this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf text = "^{style [cellwidth=8.5in cellheight=0.41in backgroundimage='D:\Graphics\grey_bar.png'];

proc report data=table 
style(header) = [background=gray foreground=white just=center vjust=center fontsize=&amp;amp;table_font fontweight=bold fontfamily=calibri]
col col_1 col_2 col_3 col_4 obs;

define col_1 /"Column 1" ;
define col_2 /"Column 2" ;
define col_3 /"Column 3" ;
define col_4 /"Column 4" ;
define obs /computed noprint;

compute obs;
obsno + 1;
obs = obsno;

if mod(obs,2) = 0 then 
call define (_row_, 'style', 'style = [background = lightgrey]');
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2020 19:15:05 GMT</pubDate>
    <dc:creator>j-solver</dc:creator>
    <dc:date>2020-10-20T19:15:05Z</dc:date>
    <item>
      <title>Adding a background behind table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/692985#M24592</link>
      <description>&lt;P&gt;I want to add a simple grey background behind a table in a pdf. I can put a grey bar as a background image for text, but can't seem to do it for a table. Is there an option to create this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf text = "^{style [cellwidth=8.5in cellheight=0.41in backgroundimage='D:\Graphics\grey_bar.png'];

proc report data=table 
style(header) = [background=gray foreground=white just=center vjust=center fontsize=&amp;amp;table_font fontweight=bold fontfamily=calibri]
col col_1 col_2 col_3 col_4 obs;

define col_1 /"Column 1" ;
define col_2 /"Column 2" ;
define col_3 /"Column 3" ;
define col_4 /"Column 4" ;
define obs /computed noprint;

compute obs;
obsno + 1;
obs = obsno;

if mod(obs,2) = 0 then 
call define (_row_, 'style', 'style = [background = lightgrey]');
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 19:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/692985#M24592</guid>
      <dc:creator>j-solver</dc:creator>
      <dc:date>2020-10-20T19:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a background behind table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/693023#M24593</link>
      <description>&lt;P&gt;Please describe a bit more clearly, or if you can show a picture that may save a lot of words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want something similar to&lt;/P&gt;
&lt;PRE&gt;   style(report)=[background=gray]
   style(header)=[background=gray]
   style(column)=[background=gray]
   style(lines)=[background=gray]
   style(summary)=[background=gray]
&lt;/PRE&gt;
&lt;P&gt;as part of your proc statement to see all of the areas of a table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your ODS pdf has unbalanced quotes, btw.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 21:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/693023#M24593</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-20T21:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a background behind table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/694004#M24607</link>
      <description>&lt;P&gt;add another style&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	STYLE(column)=[background=gray] &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Oct 2020 14:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-a-background-behind-table/m-p/694004#M24607</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-10-24T14:46:55Z</dc:date>
    </item>
  </channel>
</rss>

