<?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 STYLE(HEADER) in RTF destination with COMPUTE BEFORE statement in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/STYLE-HEADER-in-RTF-destination-with-COMPUTE-BEFORE-statement/m-p/72561#M8281</link>
    <description>Good afternoon,&lt;BR /&gt;
&lt;BR /&gt;
I have a problem with the following code, which gives me what I want in the PDF destination, but not in the RTF destination. When I specify that the top border of the header should be red, I get a red top border in the PDF file, but not in the RTF file.&lt;BR /&gt;
&lt;BR /&gt;
If I remove the COMPUTE BEFORE _PAGE_ section, the red border appears in RTF. I tried placing the border color instructions in the COMPUTE statement, but to no avail.&lt;BR /&gt;
&lt;BR /&gt;
What could explain this? Here is the sample code to test:&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF STYLE=JOURNAL FILE="TEST_RTF.RTF";&lt;BR /&gt;
ODS PDF STYLE=JOURNAL FILE="TEST_PDF.PDF";&lt;BR /&gt;
PROC REPORT DATA=SASHELP.DEMOGRAPHICS NOWD STYLE(REPORT)=[FRAME=HSIDES WIDTH=100%]&lt;BR /&gt;
     STYLE(HEADER)=[BORDERTOPCOLOR=RED];&lt;BR /&gt;
     COLUMNS REGION NAME POP;&lt;BR /&gt;
     DEFINE REGION / GROUP "This is the region column";&lt;BR /&gt;
     DEFINE NAME / DISPLAY "This is the name column";&lt;BR /&gt;
     DEFINE POP / DISPLAY "This is the population column";&lt;BR /&gt;
     COMPUTE BEFORE _PAGE_;&lt;BR /&gt;
     LINE @1 "This is HEADER line 1";&lt;BR /&gt;
     LINE @1 "This is HEADER line 2";&lt;BR /&gt;
     ENDCOMP;&lt;BR /&gt;
     COMPUTE AFTER _PAGE_;&lt;BR /&gt;
     LINE @1 "This is FOOTER line 1";&lt;BR /&gt;
     LINE @1 "This is FOOTER line 2";&lt;BR /&gt;
     ENDCOMP;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS RTF CLOSE;&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance for your help/suggestions,&lt;BR /&gt;
&lt;BR /&gt;
Daniel</description>
    <pubDate>Fri, 03 Jun 2011 20:16:51 GMT</pubDate>
    <dc:creator>Daniel</dc:creator>
    <dc:date>2011-06-03T20:16:51Z</dc:date>
    <item>
      <title>STYLE(HEADER) in RTF destination with COMPUTE BEFORE statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/STYLE-HEADER-in-RTF-destination-with-COMPUTE-BEFORE-statement/m-p/72561#M8281</link>
      <description>Good afternoon,&lt;BR /&gt;
&lt;BR /&gt;
I have a problem with the following code, which gives me what I want in the PDF destination, but not in the RTF destination. When I specify that the top border of the header should be red, I get a red top border in the PDF file, but not in the RTF file.&lt;BR /&gt;
&lt;BR /&gt;
If I remove the COMPUTE BEFORE _PAGE_ section, the red border appears in RTF. I tried placing the border color instructions in the COMPUTE statement, but to no avail.&lt;BR /&gt;
&lt;BR /&gt;
What could explain this? Here is the sample code to test:&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF STYLE=JOURNAL FILE="TEST_RTF.RTF";&lt;BR /&gt;
ODS PDF STYLE=JOURNAL FILE="TEST_PDF.PDF";&lt;BR /&gt;
PROC REPORT DATA=SASHELP.DEMOGRAPHICS NOWD STYLE(REPORT)=[FRAME=HSIDES WIDTH=100%]&lt;BR /&gt;
     STYLE(HEADER)=[BORDERTOPCOLOR=RED];&lt;BR /&gt;
     COLUMNS REGION NAME POP;&lt;BR /&gt;
     DEFINE REGION / GROUP "This is the region column";&lt;BR /&gt;
     DEFINE NAME / DISPLAY "This is the name column";&lt;BR /&gt;
     DEFINE POP / DISPLAY "This is the population column";&lt;BR /&gt;
     COMPUTE BEFORE _PAGE_;&lt;BR /&gt;
     LINE @1 "This is HEADER line 1";&lt;BR /&gt;
     LINE @1 "This is HEADER line 2";&lt;BR /&gt;
     ENDCOMP;&lt;BR /&gt;
     COMPUTE AFTER _PAGE_;&lt;BR /&gt;
     LINE @1 "This is FOOTER line 1";&lt;BR /&gt;
     LINE @1 "This is FOOTER line 2";&lt;BR /&gt;
     ENDCOMP;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS RTF CLOSE;&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
&lt;BR /&gt;
Thank you in advance for your help/suggestions,&lt;BR /&gt;
&lt;BR /&gt;
Daniel</description>
      <pubDate>Fri, 03 Jun 2011 20:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/STYLE-HEADER-in-RTF-destination-with-COMPUTE-BEFORE-statement/m-p/72561#M8281</guid>
      <dc:creator>Daniel</dc:creator>
      <dc:date>2011-06-03T20:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: STYLE(HEADER) in RTF destination with COMPUTE BEFORE statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/STYLE-HEADER-in-RTF-destination-with-COMPUTE-BEFORE-statement/m-p/72562#M8282</link>
      <description>Hi:&lt;BR /&gt;
  I can't remember off the top of my head whether the border(top) width is different for RTF vs PDF, or whether there are destination defaults that could be impacting what you see but you could try setting bordertopwidth explicitly:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  PROC REPORT DATA=SASHELP.shoes NOWD &lt;BR /&gt;
       STYLE(REPORT)=[FRAME=HSIDES WIDTH=100%]&lt;BR /&gt;
       STYLE(HEADER)=[BORDERTOPCOLOR=RED bordertopwidth=5];&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                      &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 03 Jun 2011 20:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/STYLE-HEADER-in-RTF-destination-with-COMPUTE-BEFORE-statement/m-p/72562#M8282</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-03T20:42:39Z</dc:date>
    </item>
  </channel>
</rss>

