<?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 How can I control which columns get printed on a page? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470053#M21057</link>
    <description>&lt;P&gt;Please create your code with some sashelp datasets, so that we will be able to run and see or provide the sample data you have.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 18:48:11 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-06-13T18:48:11Z</dc:date>
    <item>
      <title>ods excel How can I control which columns get printed on a page?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470021#M21056</link>
      <description>&lt;P&gt;I have a report created using Excel ODS and Proc Print.&amp;nbsp; When I print the resulting Excel file, the right-most column (D) does not print with the rest of the page (but rather on a separate page).&amp;nbsp; I've tried using absolute_column_width to reduce the size of column A (which is wider than all other columns) but it has no effect. I also tried fittopage='1' but that seems to apply to rows as well as columns and results in teeny-tiny unreadable print.&amp;nbsp; How can I control the page width breaks?&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;ODS excel FILE="&amp;amp;QTRLYRPT..xlsx";&lt;BR /&gt;ods noproctitle;&lt;BR /&gt;ods excel options (&lt;BR /&gt;embedded_titles='ON'&lt;BR /&gt;embed_titles_once='ON'&lt;BR /&gt;EMBEDDED_FOOTNOTES='ON'&lt;BR /&gt;EMBED_FOOTNOTES_ONCE='ON'&lt;BR /&gt;gridlines='ON'&lt;BR /&gt;orientation='LANDSCAPE'&lt;BR /&gt;sheet_interval='NONE'&lt;BR /&gt;sheet_name="Quarterly Report"&lt;BR /&gt;row_repeat='1-8'&lt;BR /&gt;absolute_column_width_='3,1,1,1,1,1,1'&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=II LABEL split='|';&lt;BR /&gt;ID _NAME_;&lt;BR /&gt;VAR COL1-COL4;&lt;BR /&gt;LABEL&lt;BR /&gt;_NAME_='II. SELECTED EXIT CATEGORY SUMMARY |(Related Assistance Services-Only Exiters Excluded)'&lt;BR /&gt;COL1 = 'All Career Service Exiters'&lt;BR /&gt;COL2 = 'Classroom Training'&lt;BR /&gt;COL3 = 'On-the-job Training'&lt;BR /&gt;COL4 = 'Work Experience'&lt;BR /&gt;;&lt;BR /&gt;format _name_ $IIROWS. ;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470021#M21056</guid>
      <dc:creator>MaryHancock</dc:creator>
      <dc:date>2018-06-13T17:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel How can I control which columns get printed on a page?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470053#M21057</link>
      <description>&lt;P&gt;Please create your code with some sashelp datasets, so that we will be able to run and see or provide the sample data you have.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 18:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470053#M21057</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-06-13T18:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel How can I control which columns get printed on a page?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470080#M21058</link>
      <description>&lt;P&gt;Attached contains my SAS code, the data used, and the resulting excel output.&amp;nbsp; When you view it in Excel Page Layout, you will see that one column spills over onto another page at the right.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470080#M21058</guid>
      <dc:creator>MaryHancock</dc:creator>
      <dc:date>2018-06-13T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: ods excel How can I control which columns get printed on a page?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470153#M21059</link>
      <description>&lt;P&gt;You can try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;absolute_column_width='55,14,12,14,12,13,13'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and see if it works for your printer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the program to create the spreadsheet, then manually adjusted the columns to make them fit on a page.&amp;nbsp; Then I used the CELL function in Excel to see how wide each column was, and used those numbers for the absolute_column_width option on the ODS Excel statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://blogs.technet.microsoft.com/hub/2010/08/31/formula-watch-use-the-cell-function-to-check-column-width-column-number-and-more/" target="_blank"&gt;Formula Watch: Use the Cell function to check column width, column number, and more&lt;/A&gt;&amp;nbsp;for more information about the CELL function in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screen shot below shows what the report looks like for me when I use the absolute_column_width option.&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="Page Break Preview of ODS Excel output" style="width: 247px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21189i095426128D5C57C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ODS Excel output one page wide.jpg" alt="Page Break Preview of ODS Excel output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Page Break Preview of ODS Excel output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 00:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excel-How-can-I-control-which-columns-get-printed-on-a-page/m-p/470153#M21059</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2018-06-14T00:10:24Z</dc:date>
    </item>
  </channel>
</rss>

