Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Commented Unassigned: getIndex-method gone after upgrading to 2.1.3 (from 2.0.6.0) [13436]

$
0
0
Hi there,

great Library so far.

I just upgraded to the latest version because of the alignment-bug (vertical-align top results in center). But now I have another Problem setting the background color of some cells.

The Code:
```
short palIndex = palette.FindSimilarColor(color.R, color.G, color.B).GetIndex();
menuCellStyle.FillForegroundColor = palIndex;
```

I get the following errormessage:
Error 1 'NPOI.HSSF.Util.HSSFColor' does not contain a definition for 'GetIndex' and no extension method 'GetIndex' accepting a first argument of type 'NPOI.HSSF.Util.HSSFColor' could be found (are you missing a using directive or an assembly reference?) ...\WriteToExcel.cs 80 66 apetito.MenuPlanner.Utils

I updated the assembly via nuget. Any help here? I searched the documentation and googled, but didn't find a solution or a hint so far.

Best regards,
Dominik
Comments: ** Comment from web user: Pinguwien **

Ah, just got it... it's "Indexed" now. Sorry for the inconvenience, I'Ve been blind :-)


Viewing all articles
Browse latest Browse all 1621

Trending Articles



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