<?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 How do I change how odstext headers appear in ODS PDF output using proc template? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-change-how-odstext-headers-appear-in-ODS-PDF-output/m-p/587384#M23259</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change how odstext headers appear using proc template? For example, when I replace the foreground header options in proc template using replace color list and replace colors, the color of the headers does not change, although I can change the color of the paragraph text just fine. I know I could change the color within odstext style options, but what if I would like to apply changes to the whole document? For example, if I wanted to set all headers to the color purple. Here is my failed attempt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
		define style Styles.teststyle;
		parent = Styles.Printer;
		replace color_list from color_list /
			'fgH' = purple /* Attempt to change header color to purple */
			'fg' = green
			'bg' = white
			'headerbg' = white
			'headerbgemph' = white
			'headerbgstrong' = white;
		replace colors from colors /
		 	'headerfgstrong' = color_list('fgH') /* Further attempt to change header color */
 			'headerbgstrong' = color_list('bgH') 
			'headerfg' = color_list('fgH');&lt;BR /&gt;                end;&lt;BR /&gt;run;

ods pdf
	file = "C:\...\TestReport.pdf"
	style = teststyle;
	ods layout start;
		ods region 	x=0.00in
				y=1.00in;
				proc odstext contents="";
				P "";
				H "Test header"; /* Here is my header */
				P "";
				P "Test text test text test text";
			run;

	ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 00:06:37 GMT</pubDate>
    <dc:creator>formerRuser</dc:creator>
    <dc:date>2019-09-10T00:06:37Z</dc:date>
    <item>
      <title>How do I change how odstext headers appear in ODS PDF output using proc template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-change-how-odstext-headers-appear-in-ODS-PDF-output/m-p/587384#M23259</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change how odstext headers appear using proc template? For example, when I replace the foreground header options in proc template using replace color list and replace colors, the color of the headers does not change, although I can change the color of the paragraph text just fine. I know I could change the color within odstext style options, but what if I would like to apply changes to the whole document? For example, if I wanted to set all headers to the color purple. Here is my failed attempt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
		define style Styles.teststyle;
		parent = Styles.Printer;
		replace color_list from color_list /
			'fgH' = purple /* Attempt to change header color to purple */
			'fg' = green
			'bg' = white
			'headerbg' = white
			'headerbgemph' = white
			'headerbgstrong' = white;
		replace colors from colors /
		 	'headerfgstrong' = color_list('fgH') /* Further attempt to change header color */
 			'headerbgstrong' = color_list('bgH') 
			'headerfg' = color_list('fgH');&lt;BR /&gt;                end;&lt;BR /&gt;run;

ods pdf
	file = "C:\...\TestReport.pdf"
	style = teststyle;
	ods layout start;
		ods region 	x=0.00in
				y=1.00in;
				proc odstext contents="";
				P "";
				H "Test header"; /* Here is my header */
				P "";
				P "Test text test text test text";
			run;

	ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 00:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-change-how-odstext-headers-appear-in-ODS-PDF-output/m-p/587384#M23259</guid>
      <dc:creator>formerRuser</dc:creator>
      <dc:date>2019-09-10T00:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change how odstext headers appear in ODS PDF output using proc template?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-change-how-odstext-headers-appear-in-ODS-PDF-output/m-p/587404#M23260</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; These worked for me -- with and without a template.&lt;/P&gt;
&lt;P&gt;1) Just using style overrides:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_style_overrides.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32331iF146A0F0E5F93AD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_style_overrides.png" alt="use_style_overrides.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2) Using a template and then a style override to reference the style element&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_template.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32332iE88A28DF65F16AE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_template.png" alt="use_template.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 02:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-change-how-odstext-headers-appear-in-ODS-PDF-output/m-p/587404#M23260</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-09-10T02:11:24Z</dc:date>
    </item>
  </channel>
</rss>

