Index Worksheet Format Error

Class Workbook


Class for creating Excel workbook (xls-file). It represents Excel document and contains worksheets. At first create this class and add one worksheet. You can then write to worksheet with write() functions. Call close() when you are done with the workbook.

Workbook(std::string filename)
Create a new workbook (xls-file) with the given name.

Workbook::~Workbook()
Destroys the workbook object.

Worksheet* Workbook::addWorksheet(std::wstring name = L"")
Add a new worksheet with the given name.

Format* Workbook::addFormat()
Add a new format.

std::vector<Worksheet*> Workbook::sheets()
Returns an array of the worksheet objects.

void Workbook::setCustomColor(int index, int red, int green, int blue)
Change the RGB components of color index.

bool Workbook::setKey(std::string name, std::string email, std::string key)
Set registration key.

int Workbook::version() const
Get version of this library.

bool Workbook::close()
Close and save this workbook.

See also:
Class Worksheet
Class Format
Class Error