-
Notifications
You must be signed in to change notification settings - Fork 426
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
Implementing XLS consumption/production (originally: "Any excel2003 (.xls) plan?") #227
Comments
Glad to hear it. I've considered adding XLS support. It helps that XLSX is basically an XML encoded version of the internal XLS file that Excel uses in memory so most of the structure is in place. Additionally, I've already implemented the CFBF (aka compound document) parser and serializer needed for XLS files and the system was designed to allow for additional parsers (xlnt::xlsx_consumer and xlnt::xlsx_producer). I don't think it would be a huge job, but it would be some tedious coding. I can help with architecture and prototyping if you want to give it a try. |
Thanks for your reply, But, how can I start? |
For new features, I like to use test-driven development. The first step would be to create a basic XLS file and add it to the The next step is to detect whether the file is XLS or XLSX. You could check the file extension, but I think it's more reliable to check the file magic (the first bytes of the file). XLSX is a ZIP file so the first four bytes are always 0x504b0304. XLS is a compound document so it starts with 0xd0cF11e0. This check would go in After that, I would copy Instead of reading internal data files from a ZIP archive as You may with to abstract some of the common consumption and production logic into a parent class of |
Thanks! I'll have a try. |
Closing due to inactivity. |
Is this format still supported? |
Your project help me a lot for my work,I really appreciate it.
I know people recently don't usr excel 2003 format much,
but sometimes I have to deal with this files.
I just want to know is there any plan for .xls file support.
If .xls file is in plan,I'd like to contribute to the codebase.
Thanks in advance.
The text was updated successfully, but these errors were encountered: