Skip to content
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

npoi will inexplicably digitize some cells with formulas #1351

Closed
1 task
weifan999 opened this issue May 20, 2024 · 5 comments
Closed
1 task

npoi will inexplicably digitize some cells with formulas #1351

weifan999 opened this issue May 20, 2024 · 5 comments

Comments

@weifan999
Copy link

weifan999 commented May 20, 2024

NPOI Version

2.7.0

File Type

  • XLSX

Upload the Excel File

fund.xlsx

Reproduce Steps

using var fs=new FileStream(@"C:\Users\DELL\Desktop\fund.xlsx", FileMode.Open,FileAccess.ReadWrite,FileShare.None); IWorkbook wb = new XSSFWorkbook(fs); var sht = wb.GetSheet("2-银行存款盘点表"); sht.GetRow(0).GetCell(11).SetCellValue(DateTime.Today.ToShortDateString()); using var fs1= new FileStream(@"C:\Users\DELL\Desktop\fund.xlsx", FileMode.Create, FileAccess.ReadWrite, FileShare.None); wb.Write(fs1); wb.Close();

Issue Description

image
When I execute the above code, I just change the date of one cell,the formulas in the purple cells in the chart will disappear and the cells will be numeric.

@weifan999 weifan999 added the bug label May 20, 2024
@tonyqus
Copy link
Member

tonyqus commented May 20, 2024

Can you try 2.6.2? I guess it can be a formula regression bug #1315

Btw, is it a new project? Or you are upgrading NPOI to 2.7.0?

@weifan999
Copy link
Author

I should have upgraded the NPOI version. Can I only use version 2.6.2 now?

@weifan999
Copy link
Author

It is not a new project. I have been using it for a while. I started using 2.6.2 and later upgraded it.

@tonyqus
Copy link
Member

tonyqus commented May 21, 2024

I should have upgraded the NPOI version. Can I only use version 2.6.2 now?

Yes, if 2.6.2 works for you, you have to. The regression will be fixed in 2.7.1. But the release date is still TBD. Usually, it takes 3-4 month to release a new version since this is not a commercial project. The contributors are using their spare time to work on it.

@tonyqus
Copy link
Member

tonyqus commented May 21, 2024

duplicate with #1315

@tonyqus tonyqus closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants