<?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: ods excel: &amp;quot;dynamic&amp;quot; row heights? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/671390#M24286</link>
    <description>Hi:&lt;BR /&gt;  Without some test data, nobody can run your program. Can you mock up an example using SASHELP.CLASS that shows the behavior you describe?&lt;BR /&gt;Cynthia</description>
    <pubDate>Wed, 22 Jul 2020 14:16:02 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-07-22T14:16:02Z</dc:date>
    <item>
      <title>ods excel: "dynamic" row heights?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/671282#M24285</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I'm using the below program to output to excel. I'm getting a lot of rows that are too high. I suspect this is because SAS is looking at the row that's the highest (there's one that has a lot more text in one column than the others) and setting all row heights to match it. How do I make it so the heights are dynamic for each row?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ODS&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;LISTING&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;CLOSE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; excel &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"folder\test.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=htmlblue;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; excel options(&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;flow=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'tables'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;sheet_name =&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'test'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;embedded_titles=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'yes'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;sheet_interval=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"none"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;orientation=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'landscape'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;Title&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#800080"&gt;'a title'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;PRINT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&amp;nbsp;test &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;noobs&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;ODS&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;_ALL_&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;CLOSE&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 04:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/671282#M24285</guid>
      <dc:creator>sworobec1</dc:creator>
      <dc:date>2020-07-22T04:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel: "dynamic" row heights?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/671390#M24286</link>
      <description>Hi:&lt;BR /&gt;  Without some test data, nobody can run your program. Can you mock up an example using SASHELP.CLASS that shows the behavior you describe?&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 22 Jul 2020 14:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/671390#M24286</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-07-22T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel: "dynamic" row heights?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/674257#M24324</link>
      <description>&lt;P&gt;This code does &lt;STRONG&gt;not&lt;/STRONG&gt; demonstrate 'all rows too tall', only the row with long text 'wrapped'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data cars;
  retain make model;
  length model $500;
  set sashelp.cars(obs=10);
  if _n_ = 7 then model = repeat(trim(model),25);
run;

ODS _ALL_ CLOSE;

ods excel file="test.xlsx" style=htmlblue
  options(
    flow = 'tables'
    sheet_name = 'test'
    embedded_titles = 'yes'
    sheet_interval = "none"
    orientation = 'landscape'
  );

PROC PRINT DATA=cars noobs;
  Title '10 of the Cars data';
RUN;

ODS _ALL_ CLOSE;
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_0-1596511873388.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47903iF317F4E6A48A4FB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_0-1596511873388.png" alt="RichardADeVenezia_0-1596511873388.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have data with leading spaces, hard spaces (A0x), or semi-long data that is not being measured and layed out by ODS EXCEL according to 'human-eye'&amp;nbsp; 'font-point' expectations.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 03:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-quot-dynamic-quot-row-heights/m-p/674257#M24324</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-08-04T03:37:34Z</dc:date>
    </item>
  </channel>
</rss>

