使用 C# 转换 Excel 文件格式

Aspose.Cells Cloud SDK支持30多种文件格式之间的转换。

Aspose.Cells Cloud REST API 支持使用 C# 进行 Excel 文件格式转换,并提供多种编程语言的 SDK。

PUT
https://api.aspose.cloud/v3.0/cells/convert
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";
	PutConvertWorkbookRequest request = new PutConvertWorkbookRequest();
	request.File = new Dictionary<string, Stream>();
	Stream fileStream = File.OpenRead(filePath);
	request.File.Add(filePath, fileStream);
	request.format = "xps";
	request.streamFormat = "html";
	Stream stream = cellsApi.PutConvertWorkbook(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
 
 

热门经营

 
 
 
 
 
 
 

支持的开发语言