<?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 tagset ExcelXP with autofit_width in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26251#M4260</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I would like to format the column-width in the Excel output from a stored proces using te ExcelXP tagset in the same way as the AUTOFIT_HEIGHT can be used.&lt;BR /&gt;
&lt;BR /&gt;
The AUTOFIT_HEIGHT will adjust the height of each row to present the complete content of the row, where the height is set to fit the largest cell.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to set the WIDTH for each column to fit the content of the largest cell. The width cannot be set to a fixed value because the result of the query is not predictable in terms of column content.&lt;BR /&gt;
&lt;BR /&gt;
Please help&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Henk</description>
    <pubDate>Wed, 18 Jun 2008 08:35:31 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-06-18T08:35:31Z</dc:date>
    <item>
      <title>tagset ExcelXP with autofit_width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26251#M4260</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I would like to format the column-width in the Excel output from a stored proces using te ExcelXP tagset in the same way as the AUTOFIT_HEIGHT can be used.&lt;BR /&gt;
&lt;BR /&gt;
The AUTOFIT_HEIGHT will adjust the height of each row to present the complete content of the row, where the height is set to fit the largest cell.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to set the WIDTH for each column to fit the content of the largest cell. The width cannot be set to a fixed value because the result of the query is not predictable in terms of column content.&lt;BR /&gt;
&lt;BR /&gt;
Please help&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Henk</description>
      <pubDate>Wed, 18 Jun 2008 08:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26251#M4260</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-18T08:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: tagset ExcelXP with autofit_width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26252#M4261</link>
      <description>Hello Henk,&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately Autofit height does not work in Excel.  It is in fact, set, but has no effect.&lt;BR /&gt;
The heights are calculated by the tagset based on the content of the cells and their widths.&lt;BR /&gt;
&lt;BR /&gt;
If there is a width set on a cell the tagset will honor that width and adjust the heights accordingly.&lt;BR /&gt;
&lt;BR /&gt;
The column widths are calculated based on the width given by the procedure, the font size and the length of the header for that column.   &lt;BR /&gt;
&lt;BR /&gt;
I would expect the column widths to match the widths of the actual data,  If you want them to be narrower there are a few ways to do that.   The cellwidth style attribute takes several different units of measure,  points is most common.  Setting that on a style over ride will allow you to control the column width.&lt;BR /&gt;
&lt;BR /&gt;
Are the columns too wide for you or are they too narrow?  &lt;BR /&gt;
&lt;BR /&gt;
Which version of the tagset are you using?   That can make a big difference.&lt;BR /&gt;
The current version is 1.86  and is available at &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/" target="_blank"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/&lt;/A&gt;</description>
      <pubDate>Wed, 18 Jun 2008 13:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26252#M4261</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2008-06-18T13:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: tagset ExcelXP with autofit_width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26253#M4262</link>
      <description>Eric,&lt;BR /&gt;
&lt;BR /&gt;
The columns are too narrow, in fact they are not adjusted according the data.&lt;BR /&gt;
It seems that the columns have the default width set by Excel.&lt;BR /&gt;
The height is regulated bij the AUTOFIT_HEIGHT options (which in my case is set to 'yes'). The result of this is the height of each row to fit the largest data in a cell in that row, where this will be a multible line cell depending on the amount of text to fit in that cell, as the width is not regulated in any way.&lt;BR /&gt;
&lt;BR /&gt;
I was looking for something simular for the width (AUTOFIT_WIDTH ??), but seems not to be available.&lt;BR /&gt;
&lt;BR /&gt;
The version of the tagset is the one 1.86 as you refered to.&lt;BR /&gt;
&lt;BR /&gt;
Henk

Message was edited by: HenkCZ</description>
      <pubDate>Wed, 18 Jun 2008 14:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26253#M4262</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-18T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: tagset ExcelXP with autofit_width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26254#M4263</link>
      <description>Are you using proc Report with SAS 9.1.3?&lt;BR /&gt;
&lt;BR /&gt;
Are the row heights adjusting for you?   I would not expect them to.  That option turns&lt;BR /&gt;
off the tagset's row height calculations so Excel can do it.  But I've never seen excel do the right thing.&lt;BR /&gt;
&lt;BR /&gt;
with proc report at SAS 9.1.3 there are no column widths.  Proc print will give them.  The default_column_widths tagset option offers a way around it, but you will have to choose some reasonable width.   The tagset will calculate row heights based on that width and the width could grow if a single word is too long to fit.&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
      <pubDate>Thu, 19 Jun 2008 20:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tagset-ExcelXP-with-autofit-width/m-p/26254#M4263</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2008-06-19T20:03:39Z</dc:date>
    </item>
  </channel>
</rss>

