Thanks to visit codestin.com
Credit goes to github.com

Skip to content

XLSX - font color problem #33

@EmilNachev

Description

@EmilNachev
                    var headerFont = workbook.CreateFont() as XSSFFont;
                    headerFont.IsBold = true;
                    headerFont.FontHeight = 11;
                    headerFont.SetColor(new XSSFColor(Color.White));
                    var headerStyle = workbook.CreateCellStyle() as XSSFCellStyle;
                    headerStyle.SetFont(headerFont);
                    headerStyle.FillPattern = FillPattern.SolidForeground;
                    headerStyle.SetFillForegroundColor(new XSSFColor(Color.Black));

this code make XLSX with xml error
How i can to make cell with black background and bolded text with white color? I wont to use this as "cell header".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions