<?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 set number of rows on a ods excel page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/537874#M22419</link>
    <description>&lt;P&gt;I used the code you provided with the dataset you provided.&amp;nbsp; I didn't see the same problem in Print Preview.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the screen shot below, the top and bottom margins in my spreadsheet look different than in your screen shot.&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="Footer in PRINT PREVIEW is not covering up last row of detail on the first page" style="width: 466px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27364i641E597170C7EBF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_footer_in_ODS_Excel.jpg" alt="Footer in PRINT PREVIEW is not covering up last row of detail on the first page" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Footer in PRINT PREVIEW is not covering up last row of detail on the first page&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Page Setup in my spreadsheet shows a top margin of 0.5 and a bottom margin of 05.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page Setup in your spreadsheet shows a top margin of 0 and a bottom margin of 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how to fix the issue.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 21:15:00 GMT</pubDate>
    <dc:creator>SuzanneDorinski</dc:creator>
    <dc:date>2019-02-22T21:15:00Z</dc:date>
    <item>
      <title>how to set number of rows on a ods excel page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/537198#M22406</link>
      <description>&lt;P&gt;I have a table that contains more than 2400 rows of records. After ods&amp;nbsp;converting to a excel file, when using print preview or&amp;nbsp;printing a hard copy, the footers overlay on&amp;nbsp;the last row of the page. What ods excel option can be used to&amp;nbsp;set number of rows on a page to avoid overlay?&lt;/P&gt;&lt;PRE&gt;ods listing close;
	ods excel  file="C:\temp\try.xlsx" style=snow;			
	options
	(
		sheet_name = "ID and File Name" 
		absolute_column_width="10, 50"  
		autofilter="all"	 
		row_repeat="1" 
		frozen_rowheaders='yes' 
		frozen_headers='yes'
		fittopage='no'
		embedded_footnotes='yes'
		print_footer="&amp;amp;L&amp;amp;A &amp;amp;CPage &amp;amp;P of &amp;amp;N &amp;amp;R%sysfunc(today(), mmddyy10)"
	);    

	title;
	proc print data=pdflist noobs;
		var HCO_ID /style(column)=[just=right];
		varFileName /style(column)=[just=left];
	run;
	
ods excel close;
ods listing;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.gif" style="width: 457px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27317iF36301E1975416EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.gif" alt="example.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 20:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/537198#M22406</guid>
      <dc:creator>nnl3256</dc:creator>
      <dc:date>2019-02-20T20:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to set number of rows on a ods excel page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/537874#M22419</link>
      <description>&lt;P&gt;I used the code you provided with the dataset you provided.&amp;nbsp; I didn't see the same problem in Print Preview.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the screen shot below, the top and bottom margins in my spreadsheet look different than in your screen shot.&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="Footer in PRINT PREVIEW is not covering up last row of detail on the first page" style="width: 466px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27364i641E597170C7EBF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_footer_in_ODS_Excel.jpg" alt="Footer in PRINT PREVIEW is not covering up last row of detail on the first page" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Footer in PRINT PREVIEW is not covering up last row of detail on the first page&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Page Setup in my spreadsheet shows a top margin of 0.5 and a bottom margin of 05.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page Setup in your spreadsheet shows a top margin of 0 and a bottom margin of 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how to fix the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/537874#M22419</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2019-02-22T21:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to set number of rows on a ods excel page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/538293#M22432</link>
      <description>&lt;P&gt;Thank you for testing. I find out that the problem appears randomly by using the same code on different dataset.&amp;nbsp;I may try to set orientation and margin to override the default setting.&amp;nbsp; Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/538293#M22432</guid>
      <dc:creator>nnl3256</dc:creator>
      <dc:date>2019-02-25T15:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to set number of rows on a ods excel page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/539100#M22452</link>
      <description>&lt;P&gt;Perhaps &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13736"&gt;@Chevell_sas&lt;/a&gt;&amp;nbsp;or somebody else at SAS will chime in with suggestions.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/539100#M22452</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2019-02-27T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to set number of rows on a ods excel page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/796498#M25615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here both values are expressed in inches. Centimeters can be used by bottommargin= global option but not by print_footer_margin=.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options bottommargin=1in;
      
ods excel file="&amp;amp;xxtest./reporting/demo.xlsx";

ods excel options(print_footer='This is a demo'
                  print_footer_margin='.5');

proc print data=sashelp.cars noobs;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page Setup - On my computers values are displayed in centimeters but it depends on the language used on your computer.&lt;/P&gt;
&lt;P&gt;1inch=2,54 centimers.&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="xxformat_sas_training_ods_excel_margin.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68518i969DDCFC7853656F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xxformat_sas_training_ods_excel_margin.JPG" alt="xxformat_sas_training_ods_excel_margin.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xxformat_sas_training_ods_excel.JPG" style="width: 308px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68517i0A426E250E8E7314/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xxformat_sas_training_ods_excel.JPG" alt="xxformat_sas_training_ods_excel.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative syntax using a style template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
    define style styles.xxdemo;
    parent=styles.excel;
    class body /
        marginbottom = 1in;
    end;
run;

      
ods excel file="&amp;amp;xxtest./reporting/demo2.xlsx" style=xxdemo;

ods excel options(print_footer='This is a demo'
                  print_footer_margin='.5');

proc print data=sashelp.cars noobs;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-set-number-of-rows-on-a-ods-excel-page/m-p/796498#M25615</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-02-16T09:41:11Z</dc:date>
    </item>
  </channel>
</rss>

