Workbook
Overview
Workbook is a type in Aspose.Cells FOSS for Go.
Workbook is the top-level object representing an Excel workbook.
Available methods include: ExportToCSV, ImportFromCSV, Save, SetPassword, VerifyPassword.
All public members are accessible to any Go application after installing the Aspose.Cells FOSS for Go package.
Properties: FilePath, Modified, SourceXML, StylesXML, Worksheets.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Worksheets | []*Worksheet | Read/Write | Gets the worksheets. |
SourceXML | []byte | Read/Write | Gets the source xml. |
StylesXML | []byte | Read/Write | Gets the styles xml. |
Modified | bool | Read/Write | Gets the modified. |
FilePath | string | Read/Write | Gets the file path. |
Methods
| Signature | Description |
|---|---|
ExportToCSV(sheetIndex: int, path: string, delimiter: rune) → error | ExportToCSV writes the worksheet at sheetIndex to a CSV file using the given delimiter (e.g. |
ImportFromCSV(path: string, sheetName: string, delimiter: rune) → error | ImportFromCSV reads a CSV file and imports its contents into a new worksheet with the given name. |
SetPassword(password: string) → error | SetPassword configures an open password for the workbook. |
VerifyPassword(pw: string) → bool | VerifyPassword reports whether pw matches the password that was used to encrypt this workbook (as set by SetPassword, or read from an encrypted file). |
Save(path: string) → error | Save writes the workbook to the given file path in .xlsx format. |