<?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: Row height to large when using ods excel and rwi in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646422#M24072</link>
    <description>&lt;P&gt;Thanks for your time, will look try it next week, when i am back in office.&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2020 20:36:38 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-05-09T20:36:38Z</dc:date>
    <item>
      <title>Row height to large when using ods excel and rwi</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646115#M24050</link>
      <description>&lt;P&gt;I need to create an excel-file with embedded titles and the title needs text aligned on left and right in the same line. This can easily be done with a title-statement (see code below), but as soon as ods excel comes into play, the automatic column-spanning hides parts of the left-aligned title. So i moved the title-text to the data step, with rwi inserting rows before the header of a table works well, except for one thing: the heights of the rows is unnecessary large.&lt;/P&gt;
&lt;P&gt;I can't use the option &lt;FONT face="courier new,courier"&gt;row_heights&lt;/FONT&gt; in the ods-statement, because i need the automatic height-calculation for the data.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PartlyHiddenTitle.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39198iC2A6F91F5EE7606D/image-size/large?v=v2&amp;amp;px=999" role="button" title="PartlyHiddenTitle.PNG" alt="PartlyHiddenTitle.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel 
      file= "rwi_title.xlsx"
      options(
         flow= "data"
         sheet_interval= "none"
         embedded_titles= 'yes'
      );


proc sql noprint;
   select Name into :varList separated by ' '
      from sashelp.vcolumn
         where libname = 'SASHELP' and memname = 'CARS'
   ;
quit;


/*title1 justify=left "The most fantastic sashelp.cars" justify=right "%sysfunc(today(), ddmmyyp10.)";*/

data _null_;
   set sashelp.cars end=done;

   if _n_ = 1 then do;
      declare odsout rwi();

      rwi.table_start();
      rwi.head_start();

      rwi.row_start(); /* height seems to be calculated without considering column_span */
      rwi.format_cell(data: 'The most fantastic sashelp.cars', column_span: 10, style_attr: 'color= red');
      rwi.format_cell(data: "%sysfunc(today(), ddmmyyp10.)", column_span: 5, just: 'R', style_attr: 'color= red');
      rwi.row_end();

      rwi.row_start();
      rwi.format_cell(data: 'CARS', column_span: 10, style_attr: 'color= red');
      rwi.format_cell(data: 'CARS', column_span: 5, just: 'R', style_attr: 'color= red');
      rwi.row_end();

      rwi.row_start();
      do i = 1 to countw("&amp;amp;varList");
         rwi.format_cell(data: scan("&amp;amp;varList.", i));
      end;
      rwi.row_end();
      rwi.head_end();
      rwi.body_start();
   end;

   rwi.row_start();
   do i = 1 to countw("&amp;amp;varList");
      rwi.format_cell(data: vvaluex(scan("&amp;amp;varList.", i)));
   end;
   rwi.row_end();

   if done then do;
      rwi.body_end();
      rwi.table_end();
   end;
run;

title;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is this is &lt;EM&gt;feature&lt;/EM&gt; in 9.4m5?&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 06:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646115#M24050</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-05-08T06:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Row height to large when using ods excel and rwi</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646324#M24061</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Removing RWI from the equation, with just a plain title statement, I can use the TITLE_FOOTNOTE_WIDTH= sub-option to specify the number of columns that the title should span. This works for me:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1588977854783.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39225i753D7803CC8585EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1588977854783.png" alt="Cynthia_sas_0-1588977854783.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course the LINE statement in PROC REPORT automatically spans the whole table. But the sub-option and the title statement should work no matter what the procedure or step is.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 22:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646324#M24061</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-05-08T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Row height to large when using ods excel and rwi</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646422#M24072</link>
      <description>&lt;P&gt;Thanks for your time, will look try it next week, when i am back in office.&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 20:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-height-to-large-when-using-ods-excel-and-rwi/m-p/646422#M24072</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-05-09T20:36:38Z</dc:date>
    </item>
  </channel>
</rss>

