Get the width of the column.
1 excel.Sheet.getColumnWidth
<excel.Sheet.getColumnWidth col='col'>
<sh /> +
</excel.Sheet.getColumnWidth>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acol | integer | The number of the column identifier. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Esh | Sheet | The sheet where the column is located. |
Example
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <set name="sheet_1"> <excel.Workbook.createSheet name="Sheet 1"> <wb/> </excel.Workbook.createSheet> </set> <excel.Cell.setCellValue> <cell_1/> <excel.Sheet.getColumnWidth col="2"> <sheet_1/> </excel.Sheet.getColumnWidth> </excel.Cell.setCellValue> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>