将 ODS 导出到云端的 XLSX 文件
Excel & 使用适用于 Android 的开源 Cloud SDK 导出 OpenOffice 电子表格
在适用于 Android 的 Cloud SDK 中将 ODS 导出为 XLSX 文件
- 创建一个帐户仪表板获取免费API配额和授权详细信息
- 使用客户端 ID、客户端密钥、基本 URL 和 API 版本初始化
CellsApi
- 调用
cellsWorkbookPutConvertWorkbook
方法获取生成的XLSX流
开始使用 Excel REST API
获取 Excel Cloud SDK for .NET 源代码GitHub自己编译 SDK 或前往发布以获得替代下载选项。
另请查看基于 Swagger 的API 参考了解更多关于Excel 休息 API.
用于 ODS 到 XLSX 转换的 Android 代码
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-android/
import java.io.File;
import com.aspose.cloud.cells.api.*;
public class Conversion {
public static void main(String[] args) {
String name = "Book1.xlsx";
String format = "xlsx";
String password = null;
String outPath = null;
String destFile = "DestFile.xlsx";
try {
CellsApi cellsApi = new CellsApi(System.getenv("ProductClientId"), System.getenv("ProductClientSecret"));
File response = cellsApi.cellsWorkbookPutConvertWorkbook(new File(name), format, password, outPath, null,null);
if(response.canRead())
{
if(response.exists()){
response.renameTo(new File(destFile));
}
}
}
catch(Exception exception )
{
System.out.print(exception);
}
}
}
FAQ
-
How can I get started with Aspose. REST APIs?Quickstart not only guides through the initialization of Aspose. Cloud API, it also helps in installing the required libraries.
-
Where can I see the release notes for Aspose. Cloud API?Complete release notes can be reviewed at Aspose. Cloud Documentation.
-
Is it safe to convert to in the Cloud?Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
-
What file formats are supported by Aspose. Cloud API?Aspose. Cloud can convert to and more. Checkout the complete list of supported file formats.
-
I do not have time to set up. Is there a quick demo for to that I can try?Indeed! Checkout the to Conversion App.