Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide sheet does not work #418

Closed
OFAH opened this issue Jun 7, 2019 · 1 comment
Closed

Hide sheet does not work #418

OFAH opened this issue Jun 7, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@OFAH
Copy link

OFAH commented Jun 7, 2019

Hello all. Thank you for your work.
I have noticed that err := f.SetSheetVisible("Sheet1", false) does not work. Here is code:

package main

import (
"fmt"

"github.com/360EntSecGroup-Skylar/excelize"

)

func main() {
f := excelize.NewFile()
// Create a new sheet.
index := f.NewSheet("Sheet2")
// Set value of a cell.
f.SetCellValue("Sheet2", "A2", "Hello world.")
f.SetCellValue("Sheet1", "B2", 100)
// Set active sheet of the workbook.
f.SetActiveSheet(index)
// Save xlsx file by the given path.
err := f.SetSheetVisible("Sheet1", false)
err = f.SaveAs("./Book1.xlsx")
if err != nil {
fmt.Println(err)
}
}

@xuri xuri added confirmed This issue can be reproduced bug Something isn't working in progress Working in progress labels Jun 7, 2019
@xuri xuri closed this as completed in 421f945 Jun 7, 2019
@xuri xuri removed the in progress Working in progress label Jun 7, 2019
@xuri
Copy link
Member

xuri commented Jun 7, 2019

Hi @OFAH, thanks for your issue. I have fixed it. Please try to upgrade the library with the master branch code.

nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
@xuri xuri removed the confirmed This issue can be reproduced label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants