Solved

AutoFit Column Widths and AutoFit Row Heights for Excel in XSLT without specifying column definitions

Posted on 2010-09-02
2
1,835 Views
Last Modified: 2013-11-18
Dear Experts,

I need to AutoFit Column Widths and AutoFit Row Heights for Excel in XSLT without specifying column definitions. I am not even sure if this is possible.

Thank you in advance for your time!
0
Comment
Question by:bickes0724
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
kmartin7 earned 500 total points
ID: 33588510
Unfortunately, this only works with date or numeric values. From the Microsoft reference site:

Attribute: ss:AutoFitWidth
Description: If this attribute is specified as True ("1"), it means that this column should be autosized for numeric and date values only. *We do not autofit textual values*.
If both ss:Width and ss:AutoFitWidth exist, the behavior is as follows:

•ss:AutoFitWidth="1" and ss:Width is unspecified: Autofit the column width to fit the content.
•ss:AutoFitWidth="1" and ss:Width is specified: Set the column to the specified width and only autofit if the size of the content is larger than the specified width.
•ss:AutoFitWidth="0" and ss:Width is unspecified: Use the default column width.
•ss:AutoFitWidth="0" and ss:Width is specified: Use the specified width.  
0
 

Author Comment

by:bickes0724
ID: 33589129
If I do not specify columns, is there a way to do this?? I am trying to make the XSLT dynamic and not define columns so that it can be used for all of our form submissions. And also work if we decide to add a field later...
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question