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
Solved

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

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

791 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