Documentation ¶
Index ¶
- func ActivateFirstWorksheet(workbook Workbook)
- func AddCsvFileContentToWorksheet(csvFilePath string, worksheet Worksheet)
- func AutoFitColumns(worksheet Worksheet)
- func ClearUsedRange(worksheet Worksheet)
- func ColumnCount(worksheet Worksheet) uint
- func DisableSpreadsheetSafeties()
- func EnableSpreadsheetSafeties() error
- func MoveWorksheetToLastInWorksheets(worksheet Worksheet, worksheets Worksheets)
- func RowCount(worksheet Worksheet) uint
- type Cell
- type CellImpl
- type Excel
- type Handler
- type QueryTable
- type QueryTableImpl
- type QueryTables
- type QueryTablesImpl
- type Range
- type RangeImpl
- type Workbook
- type WorkbookImpl
- func (wb *WorkbookImpl) Close(parameters ...interface{})
- func (ep *WorkbookImpl) Release()
- func (wb *WorkbookImpl) Save()
- func (wb *WorkbookImpl) SaveAs(newFileName string)
- func (wb *WorkbookImpl) SetProperty(propertyName string, propertyValue interface{})
- func (wb *WorkbookImpl) WithDispatch(dispatch *ole.IDispatch) *WorkbookImpl
- func (wb *WorkbookImpl) Worksheet(index uint) Worksheet
- func (wb *WorkbookImpl) WorksheetNamed(name string) Worksheet
- func (wb *WorkbookImpl) Worksheets() (worksheets Worksheets)
- type Workbooks
- type WorkbooksImpl
- func (books *WorkbooksImpl) Add() (workbook Workbook)
- func (books *WorkbooksImpl) Close()
- func (books *WorkbooksImpl) Count() uint
- func (books *WorkbooksImpl) Open(filePath string) (workbook Workbook)
- func (ep *WorkbooksImpl) Release()
- func (books *WorkbooksImpl) WithDispatch(dispatch *ole.IDispatch) *WorkbooksImpl
- type Worksheet
- type WorksheetImpl
- func (ws *WorksheetImpl) Activate()
- func (ws *WorksheetImpl) Cells(rowIndex uint, columnIndex uint) (cell Cell)
- func (ws *WorksheetImpl) Delete()
- func (ws *WorksheetImpl) MoveToAfterWorksheet(worksheet Worksheet)
- func (ws *WorksheetImpl) Name() string
- func (ws *WorksheetImpl) QueryTables() QueryTables
- func (ws *WorksheetImpl) Release()
- func (ws *WorksheetImpl) SetName(name string)
- func (ws *WorksheetImpl) UsedRange() Range
- func (ws *WorksheetImpl) WithDispatch(dispatch *ole.IDispatch) *WorksheetImpl
- type Worksheets
- type WorksheetsImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateFirstWorksheet ¶
func ActivateFirstWorksheet(workbook Workbook)
func AutoFitColumns ¶
func AutoFitColumns(worksheet Worksheet)
func ClearUsedRange ¶
func ClearUsedRange(worksheet Worksheet)
func ColumnCount ¶
func DisableSpreadsheetSafeties ¶
func DisableSpreadsheetSafeties()
func EnableSpreadsheetSafeties ¶
func EnableSpreadsheetSafeties() error
func MoveWorksheetToLastInWorksheets ¶
func MoveWorksheetToLastInWorksheets(worksheet Worksheet, worksheets Worksheets)
Types ¶
type Cell ¶
type Cell interface { Value() interface{} SetValue(value interface{}) SetNumberFormat(value interface{}) Release() }
type CellImpl ¶
type CellImpl struct {
// contains filtered or unexported fields
}
func (*CellImpl) SetNumberFormat ¶
func (cell *CellImpl) SetNumberFormat(value interface{})
func (*CellImpl) WithDispatch ¶
type Excel ¶
type Excel struct {
// contains filtered or unexported fields
}
func (*Excel) WithDispatch ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) Initialise ¶
type QueryTable ¶
type QueryTable interface { SetProperty(propertyName string, propertyValue interface{}) Release() }
type QueryTableImpl ¶
type QueryTableImpl struct {
// contains filtered or unexported fields
}
func (*QueryTableImpl) SetProperty ¶
func (qt *QueryTableImpl) SetProperty(propertyName string, propertyValue interface{})
func (*QueryTableImpl) WithDispatch ¶
func (qt *QueryTableImpl) WithDispatch(dispatch *ole.IDispatch) *QueryTableImpl
type QueryTables ¶
type QueryTables interface { AddCsvFileToWorksheet(csvFilePath string, worksheet Worksheet) QueryTable Release() }
type QueryTablesImpl ¶
type QueryTablesImpl struct {
// contains filtered or unexported fields
}
func (*QueryTablesImpl) AddCsvFileToWorksheet ¶
func (qt *QueryTablesImpl) AddCsvFileToWorksheet(csvFilePath string, worksheet Worksheet) QueryTable
func (*QueryTablesImpl) WithDispatch ¶
func (qt *QueryTablesImpl) WithDispatch(dispatch *ole.IDispatch) *QueryTablesImpl
type RangeImpl ¶
type RangeImpl struct {
// contains filtered or unexported fields
}
func (*RangeImpl) WithDispatch ¶
type WorkbookImpl ¶
type WorkbookImpl struct {
// contains filtered or unexported fields
}
func (*WorkbookImpl) Close ¶
func (wb *WorkbookImpl) Close(parameters ...interface{})
func (*WorkbookImpl) Save ¶
func (wb *WorkbookImpl) Save()
func (*WorkbookImpl) SaveAs ¶
func (wb *WorkbookImpl) SaveAs(newFileName string)
func (*WorkbookImpl) SetProperty ¶
func (wb *WorkbookImpl) SetProperty(propertyName string, propertyValue interface{})
func (*WorkbookImpl) WithDispatch ¶
func (wb *WorkbookImpl) WithDispatch(dispatch *ole.IDispatch) *WorkbookImpl
func (*WorkbookImpl) Worksheet ¶
func (wb *WorkbookImpl) Worksheet(index uint) Worksheet
func (*WorkbookImpl) WorksheetNamed ¶
func (wb *WorkbookImpl) WorksheetNamed(name string) Worksheet
func (*WorkbookImpl) Worksheets ¶
func (wb *WorkbookImpl) Worksheets() (worksheets Worksheets)
type WorkbooksImpl ¶
type WorkbooksImpl struct {
// contains filtered or unexported fields
}
func (*WorkbooksImpl) Add ¶
func (books *WorkbooksImpl) Add() (workbook Workbook)
func (*WorkbooksImpl) Close ¶
func (books *WorkbooksImpl) Close()
func (*WorkbooksImpl) Count ¶
func (books *WorkbooksImpl) Count() uint
func (*WorkbooksImpl) Open ¶
func (books *WorkbooksImpl) Open(filePath string) (workbook Workbook)
func (*WorkbooksImpl) WithDispatch ¶
func (books *WorkbooksImpl) WithDispatch(dispatch *ole.IDispatch) *WorkbooksImpl
type Worksheet ¶
type Worksheet interface { Name() string SetName(name string) Delete() UsedRange() Range Cells(rowIndex uint, columnIndex uint) (cell Cell) QueryTables() QueryTables MoveToAfterWorksheet(worksheet Worksheet) Activate() Release() }
func LastOfWorksheets ¶
func LastOfWorksheets(worksheets Worksheets) (worksheet Worksheet)
type WorksheetImpl ¶
type WorksheetImpl struct {
// contains filtered or unexported fields
}
func (*WorksheetImpl) Activate ¶
func (ws *WorksheetImpl) Activate()
func (*WorksheetImpl) Cells ¶
func (ws *WorksheetImpl) Cells(rowIndex uint, columnIndex uint) (cell Cell)
func (*WorksheetImpl) Delete ¶
func (ws *WorksheetImpl) Delete()
func (*WorksheetImpl) MoveToAfterWorksheet ¶
func (ws *WorksheetImpl) MoveToAfterWorksheet(worksheet Worksheet)
func (*WorksheetImpl) Name ¶
func (ws *WorksheetImpl) Name() string
func (*WorksheetImpl) QueryTables ¶
func (ws *WorksheetImpl) QueryTables() QueryTables
func (*WorksheetImpl) Release ¶
func (ws *WorksheetImpl) Release()
func (*WorksheetImpl) SetName ¶
func (ws *WorksheetImpl) SetName(name string)
func (*WorksheetImpl) UsedRange ¶
func (ws *WorksheetImpl) UsedRange() Range
func (*WorksheetImpl) WithDispatch ¶
func (ws *WorksheetImpl) WithDispatch(dispatch *ole.IDispatch) *WorksheetImpl
type Worksheets ¶
type WorksheetsImpl ¶
type WorksheetsImpl struct {
// contains filtered or unexported fields
}
func (*WorksheetsImpl) Add ¶
func (sheets *WorksheetsImpl) Add() (worksheet Worksheet)
func (*WorksheetsImpl) Count ¶
func (sheets *WorksheetsImpl) Count() uint
func (*WorksheetsImpl) Item ¶
func (sheets *WorksheetsImpl) Item(index uint) Worksheet
func (*WorksheetsImpl) Release ¶
func (sheets *WorksheetsImpl) Release()
func (*WorksheetsImpl) WithDispatch ¶
func (sheets *WorksheetsImpl) WithDispatch(dispatch *ole.IDispatch) *WorksheetsImpl
Click to show internal directories.
Click to hide internal directories.