gustafl / excellibrary Goto Github PK
View Code? Open in Web Editor NEWAn intuitive C# library for reading and modifying data in Excel documents (.xlsx). No dependencies other than .NET Framework 4.5.
License: MIT License
An intuitive C# library for reading and modifying data in Excel documents (.xlsx). No dependencies other than .NET Framework 4.5.
License: MIT License
Does the library from the 0.1.x milestones still hold up after we add the writing methods?
The Sheet.Open()
method was introduced for the sake of efficiency. Rather than loading all sheet contents automatically on Wordbook.Open()
, you just load sheet metadata, and then use Sheet.Open()
to load the sheet(s) you need explicitly.
But I realise now that this may be confusing. How are you supposed to understand that sheet contents are not loaded when the workbook is opened? Plus, it adds an extra line of code whenever the library is used. In the interest of achieving maximum intuitiveness, I plan to implement a boolean loadSheets
option in WorkbookOptions
, and make it default to true
.
So rather than replacing Workbook.Open()
with Sheet.Open()
, it's probably better to let them both coexist. All sheets will be loaded by default when you open the workbook, unless you set the option to false
and use Sheet.Open()
to open sheets individually.
If the memory footprint of loading a small document turns out to be too excessive, however, I might consider changing the option's default to false
.
The Open XML format allows for saving strings directly in the sheet files, rather than in sharedStrings.xml
. These strings are called inline strings. There seem to be no way to get this behavior from Excel itself.
https://msdn.microsoft.com/en-us/library/office/documentformat.openxml.spreadsheet.inlinestring.aspx
This is relevant to ExcelLibrary when
This must be considered low priority, but support for inline strings should probably be added at some point.
The unit tests currently points to a file on my desktop, which is not included in the project. Not very useful. It would be nice to include a whole set of test files. Here's a video on how to do it:
The name
argument should take a column name, such as A1.
I think we do already, but let's find out and update the README accordingly.
Are they as simple as possible? In Row.AddCell() for instance, do we need to check the column index?
Workbook.Save() should, at the very least, be able to save new sheets, and sheet metadata. The question is if it should also save updated sheet contents, or if we should use a Sheet.Save() method for that. I'm leaning towards a single Workbook.Save() method for all writing operations.
It's inefficient to read all sheets if you only need one. So the Workbook.Open()
method should no longer open and read sheet files (e.g. sheet1.xml
). Implement Sheet.Open(string name)
to load sheet data instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.