Can anybody help me with ExcelLibrary?
I’d like to set a cell background and font color, but I don’t know how can I do it.
I try to get access to a cell style, but I didn’t found it.
Anybody have any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve looked into this library for you and found the following (warning – it’s bad news!):
There is no released version of ExcelLibrary that allows access to cell colours.
In the unreleased source code there is a
BackColorproperty in the newCellStyleclass, however there is no property to represent foreground colour.The
BackColorproperty is not persisted when the workbook is saved. It is only used to set the background colour of a cell when the workbook is loaded.If use of colours is a requirement then use NPOI (as recommended by @jamietre). You can then set foreground and background colours like this: