Giter Club home page Giter Club logo

excellibrary's People

Contributors

gustafl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

excellibrary's Issues

Implement option loadSheets

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.

Consider implementing support for InlineString

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

  1. saving to a workbook
  2. reading from a workbook that has been generated by a tool other than Excel

This must be considered low priority, but support for inline strings should probably be added at some point.

Do we need a Sheet.Save() method?

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.

Read sheet names only on Workbook.Open()

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.