Posted 10 October 2023, 5:35 pm EST
Hello Prabhat!
Unfortunately, these workarounds will not help our real use case.
What we need is to import external Excel files that contain a specific table structure in which cells can contain any formula relationships. And our users sent us one file in which the cell values actually change when imported into Spread. And this is kind of a critical issue for us.
This is more detailed code of the problem:
fpSpread1_Sheet1.ReferenceStyle = ReferenceStyle.R1C1;
fpSpread1_Sheet1.SetValue(0, 0, 8.29);
fpSpread1_Sheet1.SetValue(0, 1, 150);
fpSpread1_Sheet1.SetFormula(0, 2, "ROUND(RC[-1]*RC[-2];0)/1000");
fpSpread1.SaveExcel("test.xlsx", ExcelSaveFlags.UseOOXMLFormat);
We cannot limit our users to using only certain formulas and expect Spread to have 100% exact Excel import/export compatibility. But is the developer’s answer final? And Spread on .Net Isn’t 100% compatible with Excel?
This is weird. Because in my opinion, platform specific issues should be specifically fixed in this platform version of the product…
And about workarounds. Is it possible to import an Excel file without formulas (using cached values in cells) but with styles, spans and etc.? Because the ExcelOpenFlags.DataAndFormulasOnly flag kills not only formulas, but also styles and spans.