POST
https://api.aspose.cloud/v3.0/cells/merge
Choose files
using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Request;
using System;
using System.IO;
using System.Collections.Generic;
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string filePath = "test.txt";
PostMergeRequest request = new PostMergeRequest();
request.File = new Dictionary<string, Stream>();
Stream fileStream = File.OpenRead(filePath);
request.File.Add(filePath, fileStream);
request.format = "xps";
request.mergeToOneSheet = false;
Aspose.Cells.Cloud.SDK.Model.FileInfo fileInfo = cellsApi.PostMerge(request);
fileStream.Close();
支持的文件格式
- Microsoft Excel:Xls、Xlsx、Xlsb、Xlsm、Xlt、Xltx、Xltm
- 开发办公室: Ods、Fods、Ots
- XML:电子表格ML、Xml
- 文本: Csv、Tsv、Txt(制表符分隔)
- 网址: Html、Mhtml
- 图片: Png、Jpg、Gif、Emf
- 其他: Pdf、Json、Markdown
- Microsoft Excel:Xls、Xlsx、Xlsb、Xlsm、Xlt、Xltx、Xltm
- Microsoft字/PowerPoint:文档、PPT
- 开发办公室: Ods、Fods、Ots
- XML:电子表格ML、Xml
- 文本: Csv、Tsv、Txt(制表符分隔)
- 网址: Html、Mhtml
- 图片: Png、Jpg、Gif、Emf、Svg、Tiff
- 其他: Pdf、Xps、Dif、Json、Markdown、Sql