CompressionLevel
XlsxSaveOptions.CompressionLevel property
指定用于保存文档的压缩级别。 默认值为Normal.
public CompressionLevel CompressionLevel { get; set; }
例子
演示如何压缩 XLSX 文档。
Document doc = new Document(MyDir + "Shape with linked chart.docx");
XlsxSaveOptions xlsxSaveOptions = new XlsxSaveOptions();
xlsxSaveOptions.CompressionLevel = CompressionLevel.Maximum;
doc.Save(ArtifactsDir + "XlsxSaveOptions.CompressXlsx.xlsx", xlsxSaveOptions);
也可以看看
- enum CompressionLevel
- class XlsxSaveOptions
- 命名空间 Aspose.Words.Saving
- 部件 Aspose.Words