export To Excel Workbook
This is not optimized for large files and may have memory and performance issues.
Parameters
wb Name
the name of the workbook, must not be null
wb Directory
the path to the directory to contain the workbook, must not be null
Throws
if something goes wrong with the writing