<?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 - row height of proc odstext p statements in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782650#M25484</link>
    <description>&lt;P&gt;cellheight ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\test.xlsx";
	
proc odstext;
	p 'Example: This is an example for testing purpose ';
	p 'Example: This is an example for testing purpose1' / style=[cellheight=10cm width=10cm];
	p 'Example: This is an example for testing purpose2' / style=[width =3cm];
	p 'Example: This is an example for testing purpose3' / style=[cellheight=10cm width=10cm];
run;


ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 27 Nov 2021 09:54:51 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-11-27T09:54:51Z</dc:date>
    <item>
      <title>ods excel - row height of proc odstext p statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782644#M25482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone has any tips regarding ods excel row heights when it comes to proc odstext.&lt;/P&gt;
&lt;P&gt;From my testing, row_heights options is not impacting proc odstext, only the ods text statement with the second argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the height= style attribute alone doesn't seem to have any impact.&lt;/P&gt;
&lt;P&gt;Using the height= attribute with width= style attribute seems to have some effect. But I'm not clear on it actually work.&lt;/P&gt;
&lt;P&gt;Here is my test code on this last point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="&amp;amp;xxtext./reporting/test.xlsx";
	
proc odstext;
	p 'Example: This is an example for testing purpose';
	p 'Example: This is an example for testing purpose' / style=[height=3cm];
	p 'Example: This is an example for testing purpose' / style=[width =3cm];
	p 'Example: This is an example for testing purpose' / style=[height=3cm width=3cm];
run;

proc odstext pagebreak=yes;
	p 'Example: This is an example for testing purpose';
	p 'Example: This is an example for testing purpose' / style=[height=48pt];
	p 'Example: This is an example for testing purpose' / style=[width =48pt];
	p 'Example: This is an example for testing purpose' / style=[height=48pt width=48pt];
run;

ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Nov 2021 07:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782644#M25482</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-11-27T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel - row height of proc odstext p statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782650#M25484</link>
      <description>&lt;P&gt;cellheight ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\test.xlsx";
	
proc odstext;
	p 'Example: This is an example for testing purpose ';
	p 'Example: This is an example for testing purpose1' / style=[cellheight=10cm width=10cm];
	p 'Example: This is an example for testing purpose2' / style=[width =3cm];
	p 'Example: This is an example for testing purpose3' / style=[cellheight=10cm width=10cm];
run;


ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Nov 2021 09:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782650#M25484</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-27T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel - row height of proc odstext p statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782654#M25485</link>
      <description>&lt;P&gt;Thanks. I first thought by reading your answer that cellheight was the solution but then realised that you didn't use a case where only cellheight was used.&lt;/P&gt;
&lt;P&gt;After further research, it seems that height and width are not supposed to be supported by the excel destination.&lt;/P&gt;
&lt;P&gt;Only pixel and percentages seems to be allowed for the width option if height needs to be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, from my observations, width=100% affects the cells content: it defines the length of a string before applying a linebreak.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The only workaround I can think of is to use width=100% and height=5cm for example. But it may not be a solution in the long run.&lt;/STRONG&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="sas_online_documentation_xxformat.JPG" style="width: 649px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66144i6DE8734F98E91424/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_online_documentation_xxformat.JPG" alt="sas_online_documentation_xxformat.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_online_documentation_xxformat_width.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66146i34C8E89F0DE3C296/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_online_documentation_xxformat_width.JPG" alt="sas_online_documentation_xxformat_width.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer.JPG" style="width: 916px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66145i2302718F3A92302B/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer.JPG" alt="printer.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 11:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/782654#M25485</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-11-27T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel - row height of proc odstext p statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/783423#M25491</link>
      <description>CELLHEIGHT and HEIGHT are the same attribute. It was originally CELLHEIGHT and then an alias is HEIGHT. Same for CELLWIDTH and WIDTH being the same.&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 01 Dec 2021 17:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-row-height-of-proc-odstext-p-statements/m-p/783423#M25491</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-12-01T17:32:56Z</dc:date>
    </item>
  </channel>
</rss>

