将 XLTX 转换为 XLS

用于将 XLTX 转换为 XLS 的 Android 库

使用 Cells 云的转换 API 在 Android 项目中创建自定义电子表格工作流程。这是使用 Android 在线将 XLTX 转换为 XLS 和其他文档格式的专业解决方案。

使用 Cells Cloud SDK for Android 将 XLTX 转换为 XLS

API
PUT
https://api.aspose.cloud/v3.0/cells/convert

将文件格式从 XLTX 转换为 XLS 可能是一项复杂的任务。我们的 Android SDK 处理所有 XLTX 到 XLS 格式的转换,同时保留源 XLTX 电子表格的主要结构和逻辑内容。我们的 Android 库提供了在线将 XLTX 转换为 XLS 文件的专业解决方案。该Cloud SDK为Android开发人员提供了强大的功能,并确保高质量的XLS输出。

使用 Cells Cloud SDK 将 XLTX 转换为 XLS 的 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.xltx";
                String format = "xls";
                String password = null;
                String outPath = null;
                String destFile = "DestFile.xls";
                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);
                }
            }
        }

如何使用Cells Cloud SDK for Android将Excel文件转换为其他格式

  1. 注册一个帐户仪表板获取免费API配额和授权详细信息
  2. 使用您的客户端 ID、客户端密钥、基本 URL 和 API 版本初始化 Cells API。
  3. 使用 `putConvertWorkbook` 方法检索结果流。

系统要求

  1. Android 7 或更高版本
  2. Java(TM) SE 运行时环境