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

streamWriter中 SetCellStyle和SetColWidth 都无效 #725

Closed
kaideng-nmg opened this issue Nov 10, 2020 · 1 comment
Closed

streamWriter中 SetCellStyle和SetColWidth 都无效 #725

kaideng-nmg opened this issue Nov 10, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@kaideng-nmg
Copy link

迭代器按行赋值,请问如何同时设置当前行的 样式。文档中只看到了迭代器设置当前单元格样式的方法

if err := streamWriter.SetRow("A1", []interface{}{
    excelize.Cell{StyleID: styleID, Value: "Data"}}); err != nil {
    fmt.Println(err)
}

或者 迭代器 flush 后,我还有什么方法设置样式吗

@xuri xuri added enhancement New feature or request duplicate This issue or pull request already exists labels Nov 10, 2020
@xuri
Copy link
Member

xuri commented Nov 10, 2020

Thanks for your issue. SetCellStyle and SetColWidth are not a streaming API, so they will not work in stream mode, please reference the doc to get more detail about set cell style with streamWriter. The feature request of set column width has been added in the Roadmap, also reference #625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants