Set the width of a column.
1 excel.Sheet.setColumnWidth
<excel.Sheet.setColumnWidth
col='col'
width='width'
>
<sh /> +
</excel.Sheet.setColumnWidth>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acol | integer | ||||
Awidth | integer |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Esh | Sheet |
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.Sheet.setColumnWidth col="1" width="100"> <sheet_1/> </excel.Sheet.setColumnWidth> <excel.Workbook.write> <wb/> <file name="test.xls" type="absolute"/> </excel.Workbook.write> </body> </xsql-script>