Bug 65829 - formula cell overprints when updating dependent cells
Summary: formula cell overprints when updating dependent cells
Status: NEEDINFO
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 5.2.0-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-21 06:38 UTC by Erwann
Modified: 2022-01-28 06:19 UTC (History)
0 users



Attachments
cells overprints (3.28 KB, image/png)
2022-01-21 06:38 UTC, Erwann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erwann 2022-01-21 06:38:55 UTC
Created attachment 38172 [details]
cells overprints

Hi,

I use apache poi tu generate an xlsx file.
When I open this file with Excel, a strange behaviour appears.

I have a cell containing a formula.
The formula references others cells in the same sheet.

When I update these other cells, the formula updates itself, but overprints the new value on the previous.

If I change sheet or scroll in order to not see anymire the cell and then returns, the cell display correctly.

If I copy paste the sheet in a new Excel file, the problem disappears.

So I think there is a bug in the generated file from Apache POI.
Comment 1 PJ Fanning 2022-01-21 07:50:03 UTC
Can you provide a reproducible test case?
Comment 2 Erwann 2022-01-28 06:19:58 UTC
It seems that playing with borders makes appear displaying bugs.
When I removed all the borders, I have no more problem like overprint.

According to sheets creation order in the workbook, borders appear or not.
It is very strange.

To avoid some bugs, I do not use anymore RegionUtil to create borders on a range.
In place of, I set border style on each cell ... and it' boring but it works better.