Solved

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

Posted on 2010-09-02
2
1,845 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

729 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