<?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: Extra row height when using row_span and multiple text line in ODS PDF Report Writing in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491069#M21562</link>
    <description>Thanks for reply. I have tried your suggestion, but The same result. I also used several other viewer, still The same extra space there.</description>
    <pubDate>Thu, 30 Aug 2018 04:11:13 GMT</pubDate>
    <dc:creator>cxterm</dc:creator>
    <dc:date>2018-08-30T04:11:13Z</dc:date>
    <item>
      <title>Extra row height when using row_span and multiple text line in ODS PDF Report Writing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/490881#M21552</link>
      <description>&lt;P&gt;I have a problem when using the sas report writing interface to create a pdf file. My table has a column need a long header, so I split it into two lines. however, there will be an extra space generated in the first row. Please look at the sample pdf and see the difference between the first row of two table header. the only difference of the code to create the two tables is the second table use a split header "Student*Name" in first column. how can I remove the extra space in second table? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg" style="width: 317px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22848iAFD632996D465692/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.jpg" alt="test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is my code of the example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber;  
ods listing close;
ods pdf file="test.pdf" startpage=never;
title "Table Using Column and Row Spanning";
title2 "Two Tables, One for Females and One for Males";
proc format;
   value $gender
      F = "Females"
      M = "Males"
;
run;
proc sort data=sashelp.class out=class;
   by sex;
run;
data _null_;
	set class;
	where sex = 'F';
	by sex;
   	if _N_ = 1 then do;
		dcl odsout obj();
	end;
	if first.sex then do;
		obj.table_start();
	   		obj.head_start();
	      	obj.row_start();
	        	obj.format_cell(data: "Name", row_span: 2, vjust: "M");
	         	obj.format_cell(data: sex, column_span: 4, format: "$gender.");
	      	obj.row_end();
	      	obj.row_start();
	        	obj.format_cell(data: "Age");
	        	obj.format_cell(data: "Height");
	            obj.format_cell(data: "Weight");
	            obj.format_cell(data: "BMI");
	      	obj.row_end();
	   	obj.head_end();
	end;
	bmi = ( weight / ( height * height ) ) * 703;
   	obj.row_start();
    	obj.format_cell(data: name);
      	obj.format_cell(data: age);
      	obj.format_cell(data: height);
      	obj.format_cell(data: weight);
      	obj.format_cell(data: bmi, format: "8.2");
   	obj.row_end();
	if last.sex then do;
   		obj.table_end();
	end;
run;
data _null_;
	set class;
   	where sex='F';
	by sex;
	if _N_ = 1 then do;
		dcl odsout obj();
	end;

	if first.sex then do;
		obj.table_start();
	   		obj.head_start();
	      	obj.row_start();
	        	obj.format_cell(data: "Student*Name", split: '*', row_span: 2, vjust: "M");
	         	obj.format_cell(data: sex, column_span: 4, format: "$gender.");
	      	obj.row_end();
	      	obj.row_start();
	        	obj.format_cell(data: "Age");
	        	obj.format_cell(data: "Height");
	            obj.format_cell(data: "Weight");
	            obj.format_cell(data: "BMI");
	      	obj.row_end();
	   	obj.head_end();
	end;
	bmi = ( weight / ( height * height ) ) * 703;
   	obj.row_start();
    	obj.format_cell(data: name);
      	obj.format_cell(data: age);
      	obj.format_cell(data: height);
      	obj.format_cell(data: weight);
      	obj.format_cell(data: bmi, format: "8.2");
   	obj.row_end();
	if last.sex then do;
   		obj.table_end();
	end;
run;
ods pdf close;
ods listing; &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/490881#M21552</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2018-08-29T15:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extra row height when using row_span and multiple text line in ODS PDF Report Writing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491064#M21560</link>
      <description>&lt;P&gt;I have no answer, but could this be due to the reader (Adobe's) being buggy?&lt;/P&gt;
&lt;P&gt;If you replace&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; obj.format_cell(data: "Student*Name", split: '*', row_span: 2, vjust: "M");&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; obj.format_cell(data: "Student"||'0a'x||"Name", row_span: 2, vjust: "M");&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; obj.format_cell(data: "Student&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Name", row_span: 2, vjust: "M");&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;the result is the same.&lt;/P&gt;
&lt;P&gt;So there is probably nothing in the PDF itself indicating the larger height.&lt;/P&gt;
&lt;P&gt;Have you tried with other readers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 03:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491064#M21560</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-30T03:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extra row height when using row_span and multiple text line in ODS PDF Report Writing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491069#M21562</link>
      <description>Thanks for reply. I have tried your suggestion, but The same result. I also used several other viewer, still The same extra space there.</description>
      <pubDate>Thu, 30 Aug 2018 04:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491069#M21562</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2018-08-30T04:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extra row height when using row_span and multiple text line in ODS PDF Report Writing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491077#M21563</link>
      <description>&lt;P&gt;One for tech support I think.&lt;/P&gt;
&lt;P&gt;In the mean time this seems to work somewhat:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; obj.format_cell(data: "Student Name", row_span: 2, vjust: "M",overrides: "height=6mm");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; obj.format_cell(data: sex, column_span: 4, format: "$gender.",overrides: "height=3mm");&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 287px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22866i0BDA88B9D307E45C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 04:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491077#M21563</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-30T04:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extra row height when using row_span and multiple text line in ODS PDF Report Writing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491374#M21575</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;This method works. through I need manually adjust the row height each time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 18:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Extra-row-height-when-using-row-span-and-multiple-text-line-in/m-p/491374#M21575</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2018-08-30T18:38:01Z</dc:date>
    </item>
  </channel>
</rss>

