Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing data with stream writer appears to interfer with schanging sheet properties and hiding columns #1562

Open
usuallyvexed opened this issue Jun 15, 2023 · 1 comment

Comments

@usuallyvexed
Copy link

excelize 2.7.1
Golang 1.20.5

I finally have the streamwriter functionality writing data to a worksheet, what used to take minutes now takes milliseconds!

To finish my worksheet I need to set a couple of columns as hidden, set their "outlinelevels" to 1 and then lastly change the background color of the sheet's tab. I cannot. I have tried many different ways of accomplishing this, but have had no success. I have used these features in other worksheets without issue, but they were not using streamwriter. Any help and guidance would be appreciated if there is a workaround, otherwise this appears to be a bug.

Thank you.

@xuri
Copy link
Member

xuri commented Jun 16, 2023

Thanks for your feedback. This issue is related to issues #725, #777, #826, and #1489. The normal mode function and stream mode function can't be used mixed. Because the stream writer is used for writing an amount of data for a new worksheet, the existing row's outline, hidden columns, and other worksheet properties will be lost after you write cells with stream writer. I'll consider adding more functions for the stream writer, but stream writer functions won't be mapping with each normal mode function. Currently, if you need to modify or append cells with the existing worksheet, please use the normal mode functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants