workbook_new

@brief Create a new workbook object.

@param filename The name of the new Excel file to create.

@return A lxw_workbook instance.

The %workbook_new() constructor is used to create a new Excel workbook with a given filename:

@code lxw_workbook *workbook = workbook_new("filename.xlsx"); @endcode

When specifying a filename it is recommended that you use an .xlsx extension or Excel will generate a warning when opening the file.

extern (C)
workbook_new
(
const char* filename
)

Meta