<?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: How to Modify Excel Row Heights with Tagsets.Excelxp in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24184#M4084</link>
    <description>My bad. It did work for that simple example! &lt;BR /&gt;
Thanks for the catch.&lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 31 May 2010 20:42:55 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-05-31T20:42:55Z</dc:date>
    <item>
      <title>How to Modify Excel Row Heights with Tagsets.Excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24179#M4079</link>
      <description>I am creating an Excel file with Tagsets.Excelxp and PROC REPORT. I want to modify the row heights in the Excel file, make them smaller or larger.&lt;BR /&gt;
&lt;BR /&gt;
I have played around with a number of option in the ods tagsets.excelxp statement and also with STYLE options (the height= option) in PROC REPORT, and haven't found the right method. Could someone give me an example using either ods tagsets.excelxp or STYLE=?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 18 May 2010 20:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24179#M4079</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-05-18T20:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Modify Excel Row Heights with Tagsets.Excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24180#M4080</link>
      <description>Hi:&lt;BR /&gt;
  I find that row heights are troublesome, no matter what method I use when I open the output file in Excel. Techniques that work perfectly well for HTML fail miserably in EXCEL when I use them with TAGSETS.EXCELXP. In addition the ROW_HEIGHT sub-option that is available with versions of TAGSETS.EXCELXP has NEVER worked for me.&lt;BR /&gt;
 &lt;BR /&gt;
  Here's some code to test out -- compare the HTML output created by MSOFFICE2K for the browser with the XML/ExcelXP output created for Excel. As you see, none of the methods work. Excel is very "picky" about setting row heights and I just never bother with row heights. This may be a question for Tech Support -- if there is any kind of workaround, they would be able to find it out.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\rowheight1a.xls'&lt;BR /&gt;
    style=sasweb&lt;BR /&gt;
    options(doc="help");&lt;BR /&gt;
ods msoffice2k file='c:\temp\rowheight1a_mso.html' style=sasweb;&lt;BR /&gt;
                     &lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
  title '1a) Use HEIGHT in CALL DEFINE';&lt;BR /&gt;
  title2 'HTML respected; EXCELXP ignored';&lt;BR /&gt;
    column name age height weight;&lt;BR /&gt;
    compute weight;&lt;BR /&gt;
      if name = 'John' then &lt;BR /&gt;
         call define(_row_,'style','style={height=100px}');&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
  run;&lt;BR /&gt;
                 &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
       &lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\rowheight1b.xls'&lt;BR /&gt;
    style=sasweb;&lt;BR /&gt;
ods msoffice2k file='c:\temp\rowheight1b_mso.html' style=sasweb;&lt;BR /&gt;
            &lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
  title '1b) Use HTMLSTYLE attribute';&lt;BR /&gt;
  title2 'HTML respected; EXCELXP ignored';&lt;BR /&gt;
    column name age height weight;&lt;BR /&gt;
    compute weight;&lt;BR /&gt;
      if name = 'John' then &lt;BR /&gt;
         call define(_row_,'style','style={htmlstyle="height:100px"}');&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
  run;&lt;BR /&gt;
                &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                        &lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\rowheight2.xls'&lt;BR /&gt;
    style=sasweb;&lt;BR /&gt;
ods msoffice2k file='c:\temp\rowheight2_mso.html' style=sasweb;&lt;BR /&gt;
           &lt;BR /&gt;
  proc report data=sashelp.class nowd&lt;BR /&gt;
    style(column)={height=2in};&lt;BR /&gt;
  title '2) Use HEIGHT in PROC REPORT statement';&lt;BR /&gt;
  title2 'HTML respected; EXCELXP ignored';&lt;BR /&gt;
    column name age height weight;&lt;BR /&gt;
  run;&lt;BR /&gt;
             &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
           &lt;BR /&gt;
            &lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\rowheight3.xls'&lt;BR /&gt;
    options(row_height='0,50,0,0,0,0,0')&lt;BR /&gt;
    style=sasweb;&lt;BR /&gt;
            &lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
  title '3) Use ROW_HEIGHT sub-option for TAGSETS.EXCELXP (no HTML equiv)';&lt;BR /&gt;
  title2 'EXCELXP ignored';&lt;BR /&gt;
    column name age height weight;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
                   &lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\rowheight4.xls'&lt;BR /&gt;
    options(row_height='0,50,0,0,0,0,0')&lt;BR /&gt;
    style=sasweb;&lt;BR /&gt;
ods msoffice2k file='c:\temp\rowheight4_mso.html' style=sasweb;&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
     &lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
  title '4) Now add some some newlines (line feeds) to the data';&lt;BR /&gt;
  title2 'HTML respected; EXCELXP ignored (have to widen column to see values)';&lt;BR /&gt;
    column name prtname age height weight;&lt;BR /&gt;
    define name / noprint;&lt;BR /&gt;
    define prtname / computed;&lt;BR /&gt;
    compute prtname / character length=20;&lt;BR /&gt;
      prtname = catx(' ',name,'~1n','~1n','~1n');&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;BR /&gt;
data class;&lt;BR /&gt;
  set sashelp.class(obs=3);&lt;BR /&gt;
  length longvar $150;&lt;BR /&gt;
  longvar='Twas brillig and the slithy toves did gyre and gimble in the wabe.'||&lt;BR /&gt;
          ' All mimsy were the borogroves and the mome raths outgrabe.';&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\rowheight5.xls'&lt;BR /&gt;
    style=sasweb;&lt;BR /&gt;
ods msoffice2k file='c:\temp\rowheight5_mso.html' style=sasweb;&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
      &lt;BR /&gt;
  proc report data=class nowd;&lt;BR /&gt;
  title '5) Use cellwidth with a LONG text variable';&lt;BR /&gt;
  title2 'HTML respected; EXCELXP ignored (have to widen column to long string)';&lt;BR /&gt;
    column longvar name age height weight;&lt;BR /&gt;
    define longvar / display style(column)={cellwidth=1.25in};&lt;BR /&gt;
  run;&lt;BR /&gt;
     &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 18 May 2010 21:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24180#M4080</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-05-18T21:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Modify Excel Row Heights with Tagsets.Excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24181#M4081</link>
      <description>Row heights are a nightmare. We're using a modified version of the tagset that fixes various problems like this. The end result is print-ready Excel output (using XML in the background) that has frozen headers, page numbers, run dates, footers, etc.&lt;BR /&gt;
&lt;BR /&gt;
I set the AUTOFIT_HEIGHT option to 'yes' to exand rows and force text to wrap. However, I believe that this does not work in the standard tagset. It has been a few years.&lt;BR /&gt;
&lt;BR /&gt;
-Bosch-</description>
      <pubDate>Mon, 24 May 2010 07:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24181#M4081</guid>
      <dc:creator>boschy</dc:creator>
      <dc:date>2010-05-24T07:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Modify Excel Row Heights with Tagsets.Excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24182#M4082</link>
      <description>I should say we're using and modified version of:&lt;BR /&gt;
&lt;BR /&gt;
Excel XP tagset (SAS 9.1.3, v1.70, 06/05/07).</description>
      <pubDate>Mon, 24 May 2010 07:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24182#M4082</guid>
      <dc:creator>boschy</dc:creator>
      <dc:date>2010-05-24T07:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Modify Excel Row Heights with Tagsets.Excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24183#M4083</link>
      <description>Cynthia&lt;BR /&gt;
instead of [pre]   options(row_height='0,50,0,0,0,0,0')[/pre]try:[pre]   options(row_heightS='0,50,0,0,0,0,0')[/pre]&lt;BR /&gt;
just a thought

this suggestion relates to excelXP   Message was edited by: Peter.C</description>
      <pubDate>Mon, 31 May 2010 16:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24183#M4083</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-05-31T16:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Modify Excel Row Heights with Tagsets.Excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24184#M4084</link>
      <description>My bad. It did work for that simple example! &lt;BR /&gt;
Thanks for the catch.&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 31 May 2010 20:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Modify-Excel-Row-Heights-with-Tagsets-Excelxp/m-p/24184#M4084</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-05-31T20:42:55Z</dc:date>
    </item>
  </channel>
</rss>

