Closed inX-Su closed 1 year ago
Thanks for your issue. The SetColStyle
function is not a streaming API, so it won't work in stream mode, we need to implement it for stream writer, and contribution are welcome.
I find the SetColWidth
function supported for streaming API, however, it also doesn't work.
func main() {
file := excelize.NewFile()
writer, _ := file.NewStreamWriter("Sheet1")
row := make([]interface{}, 0)
row = append(row, 101)
row = append(row, 123)
writer.SetRow("A1", row)
writer.SetColWidth(2, 3, 20)
file.SaveAs("a.xlsx")
}
As the documentation notice: "you must call the SetColWidth
function before the SetRow
function." This was duplicate with issue #1294, I closed this merged into #1294.
Description SetColStyle not working
Steps to reproduce the issue: