KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I use this package: ExcelPackage though I can't figure out how to set the background color for the cell. I tried to use this: ws.Cells["A1"].Style.Fill.PatternType = OfficeOpenXml.Style.ExcelFillStyle.Solid; But it shows that the properties are not found. Sounds like I should use something similar to this: worksheet.Cell(5, columnIndex + 1).Style = "background-color: red"; But I am not sure how it works and I couldn't find the tutorial for it. Please help.
Tags (comma-separated)
Save Edits
Cancel