-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support of Excel tables #42
Comments
Hi @anton-voroshilin , |
I have implemented support for excel tables and would love to contribute my solution for review if I can be added as a contributor. I'm just waiting on my company for permission to safely contribute code from our personal accounts which I hope will be within a week or two. Here are the highlights: TablesTables provide a way to ensure data rows remain intact, can be easily inserted or deleted as single entities (avoids misaligned data due to row/column shifting), and support alternating style patterns (i.e., "banded" rows) that don't change with inserted/deleeted rows. Furthermore, tables include persistent headers allowing you to easily sort and filter your data without having to navigate to the top of the table. Finally, tables can be used as named ranges and can auto-expend/contract when rows are added/removed. Some features that are not yet supported are:
Since version TBD, call public XlsxWriter BeginTable(string tableName, IEnumerable<string> headers, string tableStyle = default) BeginTable requires a table name and a list of table column headers (not to be confused with page headers and footers). These headers must appear on the first row of your data with exactly the same names. For example: IEnumerable<string> headers = ["one", "two", "three"];
xlsxWriter.BeginRow().BeginTable("MyTable", headers, "TableStyleMedium2");
headers.ForEach(header => xlsxWriter.Write(header));
//...write cells as usual
xlsxWriter.EndTable() |
Thanks @nhamawi, I'll be more than happy to review your pull request when your contribution is green-lit! |
Hi!
Are there any plans to support Excel tables?
By the way, thank you for your work. This library is great!
The text was updated successfully, but these errors were encountered: