I would like to update very large xlsx files in stream mode, setting information in given rows of a sheet as I iterate over it.
I tried updating a stream using the current version. Cell.SetText() panics with:
not supported in read-only mode
/Users/shauncutts/src/other/pkg/mod/github.com/plandem/xlsx@v1.0.3/cell.go:130
In fact, Cell.SetInlineText() succeeds; however, the resulting text is not present.
Would this be hard to add?
Update One possibility would be to add an additional sheet in streaming write mode, copy over everything while making modifications, then close and delete the original sheet, and rename the new sheet. (sigh). But looking around I don't see any facilities for copying data from one sheet to another. Would that be a promising approach?
I would like to update very large xlsx files in stream mode, setting information in given rows of a sheet as I iterate over it.
I tried updating a stream using the current version.
Cell.SetText()panics with:In fact,
Cell.SetInlineText()succeeds; however, the resulting text is not present.Would this be hard to add?
Update One possibility would be to add an additional sheet in streaming write mode, copy over everything while making modifications, then close and delete the original sheet, and rename the new sheet. (sigh). But looking around I don't see any facilities for copying data from one sheet to another. Would that be a promising approach?