I am losing cell style when I export out of grid desktop.
Hi,
Here is the test project. I’ve included the saved excel spreadsheet.
Hi,
Thanks for your posting and using Aspose.Cells.GridDesktop.
We were able to observe this issue and found yellow color cell does not get exported. We have also tried foreground color and simply color property but it did not work.
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
- CELLSNET-43859 - Cell filled with Yellow color does not get exported to XLSX file
Hi,
Thanks for using Aspose.Cells.GridDesktop.
We have fixed this issue and will provide it to you soon.
Please see the following code and comments for your reference.
C#
//I have added style.Pattern propertie to fix this issue.
//thus the behavior is exactly like in MS-EXCEL
//the default Pattern is none, so we need to set Pattern and ForegroundColor ,to get the expected effect
//ForegroundColor/BackgroundColor will take effect when the Pattern is not none
Style style = gridDesktop1.Worksheets[0].Cells[0, 0].GetStyle();
style.Pattern = GridBackgroundType.Solid;
style.ForegroundColor = Color.Yellow;
gridDesktop1.Worksheets[0].Cells[0, 0].SetStyle(style);
The issues you have found earlier (filed as CELLSNET-43859) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.