Skip to content

Empty Lists with Applied NumberFormat Throw ArgumentOutOfRangeException #51

Open
@a-frazier

Description

If the formatter receives an empty result set to format, and the object's model has an ExcelColumn attribute applies using the NumberFormat property, the DefaultSerializer will throw an ArgumentOutOfRangeException with the message "Start cell Address must be less or equal to End cell address."

The expected result is an Excel file with only the header row.

Since XlsxDocumentBuilder.FormatColumn skips the header row by default, firstRow is 2 and RowCount is 1 since the list was empty and only the header row is output.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions