CompressionLevel

CompressionLevel enumeration

Specifies ZIP compression levels for OpenXML file. Higher levels provide better compression at the cost of slower processing.

public enum CompressionLevel

Values

NameValueDescription
None0No compression is applied. Files are stored as-is.
Level11Fastest compression with the lowest compression ratio.
Level22Faster compression with slightly better compression ratio than Level1.
Level33Provides better compression than Level2 with moderate performance impact.
Level44Provides better compression than Level3.
Level55Provides improved compression over Level4 with additional processing time.
Level66Standard compression, offering a good balance between compression speed and file size. The default compression level.
Level77Provides higher compression than Level6 with slower processing.
Level88Provides higher compression than Level7.
Level99Maximum compression. Produces the smallest file size with the slowest processing speed.

See Also