Skip to content

Freeze panes missing async implementation #678

Description

@BaatenHannes

Excel Type

  • XLSX
  • XLSM
  • CSV
  • OTHER

MiniExcel Version

1.34.2

Description

PR #620 implemented the ability to freeze rows and columns. This feature seems to be missing in the async implementation (ExcelOpenXmlSheetWriter.Async.cs).

Using the configuration with the MemoryStream.SaveAsAsync() method doesn't freeze any rows or columns:

        var stream = new MemoryStream();
        var lines = new List<DigitaleWoonstcontroleExcelLine>();
        
        foreach (var row in rows)
        {
            lines.AddRange(CreateRowObject(row));
        }

        var config = new OpenXmlConfiguration()
        {
            FreezeRowCount = 3,
            FreezeColumnCount = 3
        };
        
        await stream.SaveAsAsync(lines, printHeader: true, sheetName: SheetName, ExcelType.XLSX, config, cancellationToken: cancellationToken);
        stream.Seek(0, SeekOrigin.Begin);
        return stream;

Metadata

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