Save workbook to csv file

Refer to the following example code to see how to save a workbook to csv file.