Can you please help me with following issue:
Hi Alexey,
Thanks for your sample file, sample code and using Aspose.Cells.
We were able to observe this issue after running your code with the latest version: Aspose.Cells for Java 8.1.1.
The background pattern of cell C9 should be detected as BackgroundType.NONE but it is detected as BackgroundType.SOLID and its foreground color is detected as Black while it should be detected as White or No-Fill.
We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as
- CELLSJAVA-40881 - Wrong detection of cell background pattern and color
Hi,
We have evaluated your issue further. Please open the file in MS Excel, the cell C9 is not transparent, Right-click on the cell C9 ==> Format Cells==>Fill==>Background color : No Color is
selected, Click “Pattern Style”, “Solid” is selected.
In Aspose.Cells, Color.isEmpty() is used to check whether there is no color set.
See following codes:
e.g.
Sample code:
style = cells.getCellStyle(8, 2);
TestCase.assertEquals(BackgroundType.NONE, style.getPattern());
System.out.println(style.getForegroundColor().isEmpty());
Thank you.
Thanks, Amjad Sahi. It is very helpfull.