Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: Set BackgroundColor before Font.Color.SetColor [15397]

$
0
0
I can be with the same problem as issue 15329.
When you run the following configuration, for example:

workSheet.Cells ["F: G"] = Style.Fill.PatternType OfficeOpenXml.Style.ExcelFillStyle.Solid;
workSheet.Cells ["F: G"] Style.Fill.BackgroundColor.SetColor ("RED");

And then:

workSheet.Cells ["F:H"] Style.Font.Color.SetColor ("BLUE").

The correct would be the columns "F" and "G" are with background color "Red" with text "blue", however the column "H" just copying the style of previous "column / cell", causing the column "H" continue with the background color" Red ".

If case execute the same flow and we configure the font color for the whole spreadsheet, due to this error cell style check, it generates a self processing and a file with significant size. Logically, because all cells are now with the background color "Red".

Checking the code, the error apparently is to enter the next cell is not made style print of this cell specifies, then retains the style read the first cell of the column group "F:H".

Thanks!

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>