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

NameTypeAccessDescription
Worksheets[]*WorksheetRead/WriteGets the worksheets.
SourceXML[]byteRead/WriteGets the source xml.
StylesXML[]byteRead/WriteGets the styles xml.
ModifiedboolRead/WriteGets the modified.
FilePathstringRead/WriteGets the file path.

Methods

SignatureDescription
ExportToCSV(sheetIndex: int, path: string, delimiter: rune)errorExportToCSV writes the worksheet at sheetIndex to a CSV file using the given delimiter (e.g.
ImportFromCSV(path: string, sheetName: string, delimiter: rune)errorImportFromCSV reads a CSV file and imports its contents into a new worksheet with the given name.
SetPassword(password: string)errorSetPassword configures an open password for the workbook.
VerifyPassword(pw: string)boolVerifyPassword 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)errorSave writes the workbook to the given file path in .xlsx format.

See Also