Table of Contents

ExcelFile.XlsxCompressionLevel Property

Zip compression level when creating xlsx files. Xlsx files are zip files, and you can compress more or less by trading speed for file size. The faster you can create the file, the bigger the xlsx files created will be. Excel by default uses "Fastest" compression level and we use "Default". Normally using compression levels more than default is not worth it, since the files will take a lot longer to be created, and the size reduction will be very small.

Remarks

Requires .NET 4.5 or newer. In older .NET versions it has no effect and compression is always default.

Syntax

Namespace: FlexCel.Core

public static CompressionLevel XlsxCompressionLevel { get; set; }

See also