excelize: Call GetSheetName can not get correct sheetname

Description

GetSheetName can not get correct sheet name just return empty string

Steps to reproduce the issue:

  1. my xlsx file’s first sheet named “basic”. so I call GetSheetIndex(“basic”) get return value is 15
  2. call GetSheetName(15) return value is “” (empty string)

Describe the results you received: I get an empty string as sheetname

Describe the results you expected: I expect the return string should be “basic”

Output of go version:

go version go1.11 linux/amd64

Excelize version or commit ID:

eef232f09ecd41b1f8fc199906ce0be64865802e

Environment details (OS, Microsoft Excel™ version, physical, etc.):

Ubuntu 18.04, wps 2019( can open and eidt excel 2007 xlsx file), thinkpad x1 carbon

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Right now it’s inconsistent, per my comment above. I had implemented a partial fix in #457 via #463 which was moving everything to be index based but missed a couple parts of the API. It’s been a while since I looked at this but I think Xuri decided to roll back my change in #486 and make everything work off the SheetID instead.