<?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 ODS RTF Proc Report; Header BorderWidth=0 still shows border? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Proc-Report-Header-BorderWidth-0-still-shows-border/m-p/776814#M25433</link>
    <description>&lt;P&gt;Given the dataset Temp1 from the code below,&amp;nbsp; I am trying to generate a table with header borders like this&amp;nbsp; ( I manually added the borders in Word).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 427px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65087iE90DB0DB45B84013/image-dimensions/427x149?v=v2" width="427" height="149" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Temp1;
	input Col1 $ Col2 Col3 Col4 Col5 Col6;
	datalines;
Set1 2 3 4 5 6
;
run;

ODS RTF File="&amp;amp;FilePath.\HeaderTest.rtf";
ODS Escapechar='^';
options nodate nonumber;

proc report data=Temp1
	Style(Report)=[rules=None Frame=HSides]
	style(Header)=[background=lightgrey]
	style(Column)=[just=c];
	Columns ('^{Style[borderbottomwidth=0
					borderrightwidth=0.1pt
					borderrightcolor=black]}'(Col1)) 
			('^{Style[borderbottomwidth=0]}'(Col2)) 
			('^{Style[borderleftwidth=0.1pt
						borderleftcolor=black
						borderrightwidth=0.1pt
						borderrightcolor=black]Span1}'(Col3 Col4)) 
		('Span2'(Col5 Col6));
	define Col1 / display
style(Header)=[bordertopwidth=0
/*		bordertopcolor=lightgrey*/
				];
	define Col2 / analysis 
		style(Header)=[bordertopwidth=0
/*		bordertopcolor=lightgrey*/
		borderleftwidth=0.1pt
		borderleftcolor=black];
	define Col3 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black
		bordertopwidth=0.1pt
		bordertopcolor=black];
	define Col4 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black
		bordertopwidth=0.1pt
		bordertopcolor=black];
	define Col5 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black
		bordertopwidth=0.1pt
		bordertopcolor=black];
	define Col6 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black				
		bordertopwidth=0.1pt
		bordertopcolor=black];
run;

ODS RTF Close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice I used escape char to create an empty spanning header over each of Col1 and Col2.&amp;nbsp; Both those spanning headers have a borderbottomwidth=0 ,and Col1 and Col2 headers have bordertopwidth=0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this outputs the following&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="border0.PNG" style="width: 461px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65094i8CEF3B953E33DDB5/image-dimensions/461x159?v=v2" width="461" height="159" role="button" title="border0.PNG" alt="border0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;even with the border set to 0 from top and bottom, it still shows the border.&lt;/P&gt;
&lt;P&gt;Then if I uncomment the 'bordertopcolor=lightgrey' for Col1 and Col2, it removes the border (or just masks it), but leaves a gap in the vertical column. (circled below, hopefully visible)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BorderGrey.jpg" style="width: 550px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65099iD5835E533F037F7C/image-dimensions/550x185?v=v2" width="550" height="185" role="button" title="BorderGrey.jpg" alt="BorderGrey.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Why does the bordertop/bottom width=0 not remove the border and not result in a&amp;nbsp; solid vertical line?&amp;nbsp; Is it that the spanning header borders are done with ODS EscapeChar?&amp;nbsp; Is there a way around this? or is there another way to extend Col1 and Col2 headers up to the top frame, rather than generate dummy spanning headers?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 17:00:46 GMT</pubDate>
    <dc:creator>mcook</dc:creator>
    <dc:date>2021-10-27T17:00:46Z</dc:date>
    <item>
      <title>ODS RTF Proc Report; Header BorderWidth=0 still shows border?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Proc-Report-Header-BorderWidth-0-still-shows-border/m-p/776814#M25433</link>
      <description>&lt;P&gt;Given the dataset Temp1 from the code below,&amp;nbsp; I am trying to generate a table with header borders like this&amp;nbsp; ( I manually added the borders in Word).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 427px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65087iE90DB0DB45B84013/image-dimensions/427x149?v=v2" width="427" height="149" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Temp1;
	input Col1 $ Col2 Col3 Col4 Col5 Col6;
	datalines;
Set1 2 3 4 5 6
;
run;

ODS RTF File="&amp;amp;FilePath.\HeaderTest.rtf";
ODS Escapechar='^';
options nodate nonumber;

proc report data=Temp1
	Style(Report)=[rules=None Frame=HSides]
	style(Header)=[background=lightgrey]
	style(Column)=[just=c];
	Columns ('^{Style[borderbottomwidth=0
					borderrightwidth=0.1pt
					borderrightcolor=black]}'(Col1)) 
			('^{Style[borderbottomwidth=0]}'(Col2)) 
			('^{Style[borderleftwidth=0.1pt
						borderleftcolor=black
						borderrightwidth=0.1pt
						borderrightcolor=black]Span1}'(Col3 Col4)) 
		('Span2'(Col5 Col6));
	define Col1 / display
style(Header)=[bordertopwidth=0
/*		bordertopcolor=lightgrey*/
				];
	define Col2 / analysis 
		style(Header)=[bordertopwidth=0
/*		bordertopcolor=lightgrey*/
		borderleftwidth=0.1pt
		borderleftcolor=black];
	define Col3 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black
		bordertopwidth=0.1pt
		bordertopcolor=black];
	define Col4 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black
		bordertopwidth=0.1pt
		bordertopcolor=black];
	define Col5 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black
		bordertopwidth=0.1pt
		bordertopcolor=black];
	define Col6 / analysis 
		style(Header)=[
		borderleftwidth=0.1pt
		borderleftcolor=black				
		bordertopwidth=0.1pt
		bordertopcolor=black];
run;

ODS RTF Close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice I used escape char to create an empty spanning header over each of Col1 and Col2.&amp;nbsp; Both those spanning headers have a borderbottomwidth=0 ,and Col1 and Col2 headers have bordertopwidth=0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this outputs the following&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="border0.PNG" style="width: 461px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65094i8CEF3B953E33DDB5/image-dimensions/461x159?v=v2" width="461" height="159" role="button" title="border0.PNG" alt="border0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;even with the border set to 0 from top and bottom, it still shows the border.&lt;/P&gt;
&lt;P&gt;Then if I uncomment the 'bordertopcolor=lightgrey' for Col1 and Col2, it removes the border (or just masks it), but leaves a gap in the vertical column. (circled below, hopefully visible)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BorderGrey.jpg" style="width: 550px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65099iD5835E533F037F7C/image-dimensions/550x185?v=v2" width="550" height="185" role="button" title="BorderGrey.jpg" alt="BorderGrey.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Why does the bordertop/bottom width=0 not remove the border and not result in a&amp;nbsp; solid vertical line?&amp;nbsp; Is it that the spanning header borders are done with ODS EscapeChar?&amp;nbsp; Is there a way around this? or is there another way to extend Col1 and Col2 headers up to the top frame, rather than generate dummy spanning headers?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Proc-Report-Header-BorderWidth-0-still-shows-border/m-p/776814#M25433</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-27T17:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report; Header BorderWidth=0 still shows border?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Proc-Report-Header-BorderWidth-0-still-shows-border/m-p/783078#M25489</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for multiple replies..&lt;/P&gt;
&lt;P&gt;I tried this code and it worked. A&amp;nbsp;thin dash line is visible but it won't affect the printing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=Temp1 split = '@' &lt;BR /&gt;&amp;nbsp; Style(Report)=[rules=None Frame=HSides cellspacing=0 ]&lt;BR /&gt;&amp;nbsp; style(Header)=[background=lightgrey borderleftwidth=0.1pt borderleftcolor=black borderrightwidth=0.1pt borderrightcolor=black ]&lt;BR /&gt;&amp;nbsp; style(Column)=[just=c bordertopcolor=black bordertopwidth=0.1pt borderleftcolor=white borderrightcolor=white borderbottomwidth=0.1pt borderbottomcolor=black];&lt;BR /&gt;Columns &lt;BR /&gt;("^S={borderleftwidth=0.1pt borderleftcolor=black}" (col1))&lt;BR /&gt;("^S={borderleftwidth=0.1pt borderleftcolor=black}" (col2))&lt;BR /&gt;("^S={borderbottomwidth=0.1pt borderbottomcolor=black borderbottomstyle=solid}Span1" (Col3 Col4))&lt;BR /&gt;("^S={borderbottomwidth=0.1pt borderbottomcolor=black borderbottomstyle=solid}Span2" (Col5 Col6));&lt;BR /&gt;define Col1 /display;&lt;BR /&gt;define Col2 /analysis;&lt;BR /&gt;define Col3 /analysis;&lt;BR /&gt;define Col4 /analysis;&lt;BR /&gt;define Col5 /analysis;&lt;BR /&gt;define Col6 /analysis;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 07:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Proc-Report-Header-BorderWidth-0-still-shows-border/m-p/783078#M25489</guid>
      <dc:creator>hlnquynh</dc:creator>
      <dc:date>2021-11-30T07:26:16Z</dc:date>
    </item>
  </channel>
</rss>

