-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Numeric cells #19
Comments
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. |
Excel: ^1.0.9 is out https://pub.dev/packages/excel Added Functionalities: Thank You |
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. |
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 |
If you set the value to an int then it automatically sets the type to CellType.int |
I see, that's pretty cool. Thanks for explanation :) Might be worth to mention in docs that cells are auto typed. |
Thanks for your great plugin.
Is it possible to write numbers in cells and have the sheet treat them as numeric?
Every number I write in a cell results in an alphanumeric cell.
Stefano
The text was updated successfully, but these errors were encountered: