You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}
}
The text was updated successfully, but these errors were encountered:
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"
)
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)
}
}
The text was updated successfully, but these errors were encountered: