excel icon indicating copy to clipboard operation
excel copied to clipboard

Losing formulas and some styling when updating .xlsx

Open thherman opened this issue 3 years ago • 8 comments

Hi,

I am trying to update a template file containing some formulas and simple cell styling. When i do so, I notice that:

  • Excel warns me about some potential problems
  • The styling is lost in most cells where content is empty
  • The formulas don't work anymore

All I did was write a single cell (the date value) just to test the library. Can someone help me with this problem ?

I am using version 2.0.0-null-safety-3

Warnings: excel warnings excel warning

Template: template

Result: modified xlsx

thherman avatar Oct 27 '21 15:10 thherman

PR are welcome

justkawal avatar Oct 30 '21 07:10 justkawal

Any updates here?

RogerBrusamarello avatar Sep 20 '22 13:09 RogerBrusamarello

@thherman any solution ran into same problem

MalikSamiAwan avatar Nov 04 '22 11:11 MalikSamiAwan

This is very important. Working with templates is way easier than recreating the basefile with code. I tried openpyxl and it correctly opens the file without loosing any information.

al4nnw avatar Feb 27 '23 13:02 al4nnw

any news on this problem? I've the same error. Maybe the temp solution can be to use python in dart with openpyxl library.

salcam avatar Feb 28 '23 11:02 salcam

I'm having the same issue as well

bmsrangel avatar Jun 28 '23 17:06 bmsrangel

I ended up setting a firebase function with a python + openpyxl to manipulate the file correctly.

al4nnw avatar Jun 28 '23 18:06 al4nnw

I ended up setting a firebase function with a python + openpyxl to manipulate the file correctly.

Thanks for the tip! I'll check it out!

bmsrangel avatar Jun 28 '23 18:06 bmsrangel