-- <worksheet> -- <xsl:attribute name="ss:Name" xmlns:xsl="#unknown">ExcelTbl</xsl:attribute> -- <!--<table ss:expandedcolumncount="29" xmlns:ss="#unknown"> -- x:FullColumns="1" x:FullRows="1">--> -- <table> -- <xsl:apply-templates select="ExcelTbl" xmlns:xsl="#unknown" /> -- <column ss:autofitwidth="0" ss:width="18" /> -- <row ss:index="2"> -- <cell ss:index="2" ss:mergeacross="16" ss:styleid="m22638596" /> -- <cell ss:mergeacross="1" ss:styleid="s89"> -- <data ss:type="String">Q1</data> -- </cell> -- </row></table></table></worksheet>
MSDN wrote:If this attribute (AutoFitWidth) 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.
AutoFitWidth
True ("1")
ss:Width
ss:AutoFitWidth
ss:AutoFitWidth="1"
ss:AutoFitWidth="0"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)