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, when I was using Excel to read and write files recently, InsertCol and InsertRow did not work, but there was no error. I used a streaming writer when creating my file. After writing data, I closed the file handle. When I open the file again, any operation of writing data will fail, but reading data can.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, when I was using Excel to read and write files recently, InsertCol and InsertRow did not work, but there was no error. I used a streaming writer when creating my file. After writing data, I closed the file handle. When I open the file again, any operation of writing data will fail, but reading data can.
In test.xlsx, produc exists.


f, _ := excelize.OpenFile("test.xlsx")
defer f.Close()
f.SetCellValue("product", "A2", "Hello world.")
err := f.InsertCol("product", "A")
if err != nil {
fmt.Println(err)
}
Beta Was this translation helpful? Give feedback.
All reactions