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

Created Unassigned: LookupColor seems to always return black [15438]

$
0
0
Hi

Am checking 4.0.5 as replacement to 4.0.4.
Not sure if I'm using the ExcelColor.LookupColor method in the right context.

It always seems to return Black as the colour for either Font or Fill for coloured/shaded cells in a Source sheet.
e.g. LookupColor(sht.Cells[stRow, ii].Style.Font.Color)
Under the covers the theColor.Indexed is always 0;

So I switched to using
"#" + sht.Cells[stRow, ii].Style.Font.Color.Rgb
to get a HTML colour string.

Any clues as to what is wrong? (Maybe I have corrupted the source Cells in some way? The code looks to try to handle the old XLS limited colour palette - but why is that necessary?)

Cheers Andrew
PS. THANKS for a Great product anyway!




Viewing all articles
Browse latest Browse all 2262

Trending Articles



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