<?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 Formatting Issue: Cell Heights in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48767#M6319</link>
    <description>Hi, before I burn any more brain cells on this one I thought I'd ask.  I'm trying to perfect a spreadsheet format but can't seem to affect Row / Cell height at all.  I was able to work around by showing Observations and making them a massive sized font, but that's too unprofessional looking.&lt;BR /&gt;
&lt;BR /&gt;
This is the code I'm using for the moment.  There's some junk in there.. remnants of different things I've tried.  Autofit, row_heights, nothing seems to work.  It seems like I can only properly use the Column settings with HTML too... am I mistaken?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc import out = testing&lt;BR /&gt;
	datafile="..."&lt;BR /&gt;
	dbms=excel2000 replace;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style XLsansPrinter;&lt;BR /&gt;
    parent = styles.sansPrinter;&lt;BR /&gt;
      style header_id from header /&lt;BR /&gt;
        font_weight = bold&lt;BR /&gt;
        background= light blue&lt;BR /&gt;
		just = c&lt;BR /&gt;
		vjust = top&lt;BR /&gt;
		borderwidth=2&lt;BR /&gt;
		font_face=arial;&lt;BR /&gt;
      style data_currency from data /&lt;BR /&gt;
		 font_size = 11pt&lt;BR /&gt;
		 just = c&lt;BR /&gt;
		 borderwidth=2&lt;BR /&gt;
		 cellheight=20;&lt;BR /&gt;
      style data_text from data /&lt;BR /&gt;
         cellwidth=10&lt;BR /&gt;
		 font_size = 40pt&lt;BR /&gt;
		 cellheight=10;&lt;BR /&gt;
  end;&lt;BR /&gt;
&lt;BR /&gt;
  	define column char_var;&lt;BR /&gt;
  	   	generic=on;&lt;BR /&gt;
  	   	style=data_text;&lt;BR /&gt;
  	   	header=colhd;&lt;BR /&gt;
	end;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods tagsets.excelXP path='C:\Documents and Settings\leach\Desktop' file="test! %sysfunc(date(),yymmddn8.).xls" style=XLsansPrinter;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP&lt;BR /&gt;
	options(&lt;BR /&gt;
			row_heights='20,20,20,20,20,20'         &lt;BR /&gt;
			absolute_column_width='10' &lt;BR /&gt;
			embedded_titles='yes'&lt;BR /&gt;
			suppress_bylines='yes'&lt;BR /&gt;
			sheet_interval='none'&lt;BR /&gt;
			sheet_name='SheetSheet!');&lt;BR /&gt;
title 'Testing Continues!';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc print data=testing noobs label style(header)=header_id style(data)=data_currency style(obs)=data_text;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP close;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much.</description>
    <pubDate>Mon, 22 Sep 2008 20:58:36 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-09-22T20:58:36Z</dc:date>
    <item>
      <title>Formatting Issue: Cell Heights</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48767#M6319</link>
      <description>Hi, before I burn any more brain cells on this one I thought I'd ask.  I'm trying to perfect a spreadsheet format but can't seem to affect Row / Cell height at all.  I was able to work around by showing Observations and making them a massive sized font, but that's too unprofessional looking.&lt;BR /&gt;
&lt;BR /&gt;
This is the code I'm using for the moment.  There's some junk in there.. remnants of different things I've tried.  Autofit, row_heights, nothing seems to work.  It seems like I can only properly use the Column settings with HTML too... am I mistaken?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc import out = testing&lt;BR /&gt;
	datafile="..."&lt;BR /&gt;
	dbms=excel2000 replace;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style XLsansPrinter;&lt;BR /&gt;
    parent = styles.sansPrinter;&lt;BR /&gt;
      style header_id from header /&lt;BR /&gt;
        font_weight = bold&lt;BR /&gt;
        background= light blue&lt;BR /&gt;
		just = c&lt;BR /&gt;
		vjust = top&lt;BR /&gt;
		borderwidth=2&lt;BR /&gt;
		font_face=arial;&lt;BR /&gt;
      style data_currency from data /&lt;BR /&gt;
		 font_size = 11pt&lt;BR /&gt;
		 just = c&lt;BR /&gt;
		 borderwidth=2&lt;BR /&gt;
		 cellheight=20;&lt;BR /&gt;
      style data_text from data /&lt;BR /&gt;
         cellwidth=10&lt;BR /&gt;
		 font_size = 40pt&lt;BR /&gt;
		 cellheight=10;&lt;BR /&gt;
  end;&lt;BR /&gt;
&lt;BR /&gt;
  	define column char_var;&lt;BR /&gt;
  	   	generic=on;&lt;BR /&gt;
  	   	style=data_text;&lt;BR /&gt;
  	   	header=colhd;&lt;BR /&gt;
	end;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods tagsets.excelXP path='C:\Documents and Settings\leach\Desktop' file="test! %sysfunc(date(),yymmddn8.).xls" style=XLsansPrinter;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP&lt;BR /&gt;
	options(&lt;BR /&gt;
			row_heights='20,20,20,20,20,20'         &lt;BR /&gt;
			absolute_column_width='10' &lt;BR /&gt;
			embedded_titles='yes'&lt;BR /&gt;
			suppress_bylines='yes'&lt;BR /&gt;
			sheet_interval='none'&lt;BR /&gt;
			sheet_name='SheetSheet!');&lt;BR /&gt;
title 'Testing Continues!';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc print data=testing noobs label style(header)=header_id style(data)=data_currency style(obs)=data_text;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP close;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much.</description>
      <pubDate>Mon, 22 Sep 2008 20:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48767#M6319</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-22T20:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Issue: Cell Heights</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48768#M6320</link>
      <description>Is this more Microsoft's problem than anything?&lt;BR /&gt;
&lt;BR /&gt;
(I am a SAS Newbie, if there's some glaring error please tell me!)

Message was edited by: Alai</description>
      <pubDate>Tue, 23 Sep 2008 13:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48768#M6320</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-23T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Issue: Cell Heights</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48769#M6321</link>
      <description>In answer to Alai, this is more of a microsoft problem, but we are stuck with making it work.&lt;BR /&gt;
autofit doesn't work. - that is microsoft's problem.  I keep trying anyway...&lt;BR /&gt;
&lt;BR /&gt;
First I am wondering which version of the tagset you are using.   Later versions of the tagset have greatly improved height calculations.   I wouldn't be surprised if a newer version made&lt;BR /&gt;
all of your problems go away.&lt;BR /&gt;
&lt;BR /&gt;
Version 1.86 is available on the web at &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The next thing is that you could use row_height_fudge, It's in points, and it is added to the height of each row after the calculations are done.   You do not want autofit_height on, that will turn off any height specifications.  Autofit_height would be great if Excel actually did what it should. &lt;BR /&gt;
&lt;BR /&gt;
As it is, heights must be calculated and specified.   The row_heights option can help also, but since you appear to want them all the same height,  row_height_fudge may be what you need, although the heights will vary according to the font size and number of rows the text needs.</description>
      <pubDate>Tue, 23 Sep 2008 15:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Issue-Cell-Heights/m-p/48769#M6321</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2008-09-23T15:35:54Z</dc:date>
    </item>
  </channel>
</rss>

