读取由Apple Inc.开发的Numbers电子表格
Contents
[
Hide
]
可能的使用场景
Numbers是由Apple Inc.开发的电子表格应用程序。Aspose.Cells可以读取Numbers电子表格,但不支持对其进行写入。它可以读取Numbers电子表格的数据、样式和公式。
使用 Aspose.Cells 读取由 Apple Inc. 开发的 Numbers 电子表格
以下示例代码加载了Sample Numbers Spreadsheet并将其转换为Output PDF Format。您必须使用 LoadOptions 类并在其构造函数中指定 LoadFormat.Numbers 作为参数才能成功加载。请从给定的链接下载它们。您可以尝试使用任何Numbers电子表格。还请阅读代码的注释以获取更多帮助。
示例代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Specify load options, we want to load Numbers spreadsheet | |
LoadOptions opts = new LoadOptions(LoadFormat.Numbers); | |
//Load the Numbers spreadsheet in workbook with above load options | |
Workbook wb = new Workbook(sourceDir + "sampleNumbersByAppleInc.numbers", opts); | |
//Save the workbook to pdf format | |
wb.Save(outputDir + "outputNumbersByAppleInc.pdf", SaveFormat.Pdf); |