Closed nino-s closed 1 year ago
Hi @nino-s , that version of LargeXlsx dropped redundant row numbers from the XLSX files thanks to a pull request that optimized file contents for performance. Looks like NPOI is getting lost not founding those row numbers any longer. Which version of NPOI are you using? Looks that may have been fixed on their side, see https://github.com/nissl-lab/npoi/issues/289 Thanks, Salvo
Hi @salvois.
Thanks for you research. I used the latest version of DotNetCore.NPOI package. I haven't realized that this package is outdated a long time ago and NPOI can be used and has .NET 6 support. I while check it out on monday and will let you know if everything works as expected.
My test with dotnet fiddle is working with the "new" NPOI package by the way.
Best regards, Nino
Everything is working fine with the new NPOI package. Thanks for your support!
Hi,
I have a Unit Test which checks the generated output of a method which uses your library. To check the output, I use NPOI to read the output and the first row to check some header values. Since the version 1.7.1 the test failed with a NullReference, because i access the first row by using
sheet.GetRow(0)
. By further analyzing i came across theFirstRowNum
property which is -1.Here is an example:
With the above example using LargeXlsx version 1.7.0
FirstRowNum
is 0, with version 1.7.1FirstRowNum
is -1.It need to have something to do with the line breaks which you added, but I haven't further analyzed it. Can you please have a look on it?