diff options
author | xuri <xuri.me@gmail.com> | 2022-07-18 00:21:34 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-07-18 00:21:34 +0800 |
commit | ebea684ae5c60776d4d8364b7360d0c0603cb3b0 (patch) | |
tree | 257562b2549f81ed8593cdd2eaa39ac55652b79a /sheetpr.go | |
parent | 0d4c97c88aa9254a4db5a0b9192d0f431ff90e43 (diff) |
Fix potential file corrupted and change worksheet name case-insensitive
- Using sheet ID instead of sheet index when delete the cell in calculation chain
- Update documentation for exported functions
- Using `sheet` represent the sheet name in the function parameters
Diffstat (limited to 'sheetpr.go')
-rw-r--r-- | sheetpr.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -181,8 +181,8 @@ func (o *AutoPageBreaks) getSheetPrOption(pr *xlsxSheetPr) { // FitToPage(bool) // AutoPageBreaks(bool) // OutlineSummaryBelow(bool) -func (f *File) SetSheetPrOptions(name string, opts ...SheetPrOption) error { - ws, err := f.workSheetReader(name) +func (f *File) SetSheetPrOptions(sheet string, opts ...SheetPrOption) error { + ws, err := f.workSheetReader(sheet) if err != nil { return err } @@ -207,8 +207,8 @@ func (f *File) SetSheetPrOptions(name string, opts ...SheetPrOption) error { // FitToPage(bool) // AutoPageBreaks(bool) // OutlineSummaryBelow(bool) -func (f *File) GetSheetPrOptions(name string, opts ...SheetPrOptionPtr) error { - ws, err := f.workSheetReader(name) +func (f *File) GetSheetPrOptions(sheet string, opts ...SheetPrOptionPtr) error { + ws, err := f.workSheetReader(sheet) if err != nil { return err } |