Closed linzhicheng5512 closed 1 year ago
1.Version: v3.2.3 2.Test code:
import ( "github.com/tealeg/xlsx/v3" ) type structTest struct { IntVal int `xlsx:"0"` StringVal string `xlsx:"1"` FloatVal float64 `xlsx:"2"` IgnoredVal int `xlsx:"3"` BoolVal bool `xlsx:"4"` } func main() { structVal := &structTest{ IntVal: 16, StringVal: "hello world", FloatVal: 3.14159216, IgnoredVal: 7, BoolVal: true, } //create a new xlsx file and write a struct file := xlsx.NewFile() sheet, _ := file.AddSheet("TestSheet") row := sheet.AddRow() row.SetHeight(12.5) row.WriteStruct(structVal, -1) sheet.AutoFilter = &xlsx.AutoFilter{TopLeftCell: "A1", BottomRightCell: "E1"} err := file.Save("test.xlsx") if err != nil { panic(err) } }
3.Open 'test.xlsx' file, have this error message 4.This issue is similar to the https://github.com/tealeg/xlsx/issues/679
Stale issue message
1.Version: v3.2.3 2.Test code:
3.Open 'test.xlsx' file, have this error message
4.This issue is similar to the https://github.com/tealeg/xlsx/issues/679