Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-09-02
2
Medium Priority
?
1,909 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

670 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