Giter Site home page Giter Site logo

Numeric cells about excel HOT 6 CLOSED

justkawal avatar justkawal commented on August 11, 2024
Numeric cells

from excel.

Comments (6)

bakua avatar bakua commented on August 11, 2024 1

Hello, I have went though the code, but I don't see a way how to set a cell type when creating a new excel file. There isn't any setter for cell type, just getters.

from excel.

justkawal avatar justkawal commented on August 11, 2024 1

Hey @bakua , the reason for not giving the setter for cell-type is that, What happens if user sets the setter to int but has String type value in that cell, So when processing the excel file, It will be ambiguous and might lead to corrupted excel file.

So in line : https://github.com/kawal7415/excel/blob/0caf98033f5147f09b96f16270b1a15ce20ccf52/lib/src/sheet/sheet.dart#L877
You can see in the link to internal code that we have taken the load on us and give the users less headache to maintain things.

from excel.

justkawal avatar justkawal commented on August 11, 2024

We have headed to give the formula functionality so we had made the cell type dynamic which will help you to save your number as numeric.

You will be able to see the changes in the next version.

from excel.

justkawal avatar justkawal commented on August 11, 2024

Excel: ^1.0.9 is out https://pub.dev/packages/excel
CellType Functionality is available in order to save numeric cells
Now excel being more faster than before.

Added Functionalities:
Cell Type
Copy Sheet
Rename Sheet
Delete Sheet
Link Sheets
Un-Link Sheets
Font Family (182 Font Family Available)
Font Size
Italic
Underline
Bold

Thank You
Long Live Open S🔥urce

from excel.

justkawal avatar justkawal commented on August 11, 2024

If you set the value to an int then it automatically sets the type to CellType.int

from excel.

bakua avatar bakua commented on August 11, 2024

I see, that's pretty cool. Thanks for explanation :) Might be worth to mention in docs that cells are auto typed.

from excel.

Related Issues (20)

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.