-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
StreamWriter couldn't set row style by RowOpt
#1354
Comments
Thanks for your issue. The stream writer won't apply or overwrite the style of each cell when you specify the row style, please specify the style for each cell as you need like this: w.SetRow("A1", []interface{}{
excelize.Cell{StyleID: styleID, Value: "value1"},
excelize.Cell{StyleID: styleID, Value: "value2"},
}) |
Thanks for your quick response. I would like to open a pull request to fix this issue. I have a question about the expected behavior. When I specify the style like this: w.SetRow("A1", []interface{}{excelize.Cell{StyleID: 0, Value: "value1"}}, excelize.RowOpts{StyleID: styleID}) The style id of A1 should be:
My understanding is that the first is the expected behavior, which the developers could unset the cell style. |
Yep, the cell style should be overridden by 0 in this case, the cell style priority is hight than the rows. |
…ch cell (#1355) Co-authored-by: Tianzhi Jin <[email protected]>
…for each cell (qax-os#1355) Co-authored-by: Tianzhi Jin <[email protected]>
…for each cell (qax-os#1355) Co-authored-by: Tianzhi Jin <[email protected]>
…for each cell (qax-os#1355) Co-authored-by: Tianzhi Jin <[email protected]>
Description
Stream Writer couldn't set row style by
RowOpt
.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Output of
go version
:Excelize version or commit ID:
The text was updated successfully, but these errors were encountered: