Remove the temporal files created for the generation of the Workbook when the API Streaming (SXSSF) has been used.
Returns true if is has been done correctly, otherwise no. After the call, the file cannot be modified.
1 excel.Workbook.dispose
<excel.Workbook.dispose>
<wb /> +
</excel.Workbook.dispose>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Sheet of work of which you want to remove the temporal files created during its generation. |
Returns | |
---|---|
Type | Description |
boolean | True if the process has been successful. Otherwise, false. |
Example
Create an excel file, with a sheet called sheet1 and removes the generated temporal files.
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> <println> <excel.Workbook.dispose> <wb/> </excel.Workbook.dispose> </println> </body> </xsql-script>