Skip to content

Commit

Permalink
update net/background,clear,conversion,export,merge for md
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianzhangd committed Jan 18, 2024
1 parent 95303b8 commit e09ab60
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 84 deletions.
34 changes: 22 additions & 12 deletions cells/en/net/background/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,39 @@ description: Aspose.Cells Cloud REST API supports setting the background for Exc
{{< /blocks/products/pf/agp/feature-section >}}


{{< blocks/products/cells/cells-cloud-api-template btName="Background" OutResultType="Variable" OutResultDataType="Class" ResultPosition="result" apireferenceurl= https://reference.aspose.cloud/cells/#/LightCells/PostWatermark >}}
{{< blocks/products/cells/cells-cloud-api-template btName="RunCode" OutResultType="Variable" OutResultDataType="Class" ResultPosition="result" apireferenceurl= https://reference.aspose.cloud/cells/#/LightCells/PostWatermark >}}

{{< blocks/products/cells/cells-cloud-upload>}}
{{< blocks/products/cells/cells-cloud-parameters itName="color" required="true" prompt="color">}}
{{< blocks/products/cells/cells-cloud-parameters itName="text" required="true" prompt="text">}}
{{% blocks/products/cells/cells-cloud-showcode %}}
{{< blocks/products/cells/cells-cloud-parameters itName="text" required="True" prompt="text">}}
{{< blocks/products/cells/cells-cloud-parameters itName="color" required="True" prompt="e.g. #1032ff">}}
{{< blocks/products/cells/cells-cloud-parameters itName="outFormat" required="False" prompt="The output data file format.(CSV/XLS/HTML/MHTML/ODS/PDF/XML/TXT/TIFF/XLSB/XLSM/XLSX/XLTM/XLTX/XPS/PNG/JPG/JPEG/GIF/EMF/BMP/MD[Markdown]/Numbers)">}}
{{< blocks/products/cells/cells-cloud-parameters itName="password" required="False" prompt="The password needed to open an Excel file.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="checkExcelRestriction" required="False" prompt="Whether check restriction of excel file when user modify cells related objects.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="region" required="False" prompt="The regional settings for workbook.">}}
{{% blocks/products/cells/cells-cloud-showcode request="text,color,outFormat,password,checkExcelRestriction,region" requestvalue=",,,,true," %}}
```cs

using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Collections.Generic;
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string filePath = "test.txt";
PostWatermarkRequest request = new PostWatermarkRequest();
request.File = new Dictionary<string, Stream>();
var request = new PostWatermarkRequest();
request.File = new Dictionary<string, Stream>();
string filePath = "Book1.xlsx";
Stream fileStream = File.OpenRead(filePath);
request.File.Add(filePath, fileStream);
request.color = "#ccc";
request.text = "Aspose.Cells Cloud";
Aspose.Cells.Cloud.SDK.Model.FilesResult result = cellsApi.PostWatermark(request);
fileStream.Close();
request.File.Add(filePath, fileStream);
request.text = "";
request.color = "";
request.outFormat = "";
request.password = "";
request.checkExcelRestriction = true;
request.region = "";
var result = cellsApi.PostWatermark(request);
fileStream.Close();

```
{{% /blocks/products/cells/cells-cloud-showcode %}}
Expand Down
32 changes: 22 additions & 10 deletions cells/en/net/clear/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,40 @@ description: Aspose.Cells Cloud REST API supports clear inner objects in an Exce
{{% blocks/products/cells/cells-cloud-api-http-method apiname="POST" apiurl=https://api.aspose.cloud/v3.0/cells/clearobjects %}}
{{< /blocks/products/pf/agp/feature-section >}}

{{< blocks/products/cells/cells-cloud-api-template btName="Clear" OutResultType="Variable" OutResultDataType="Class" ResultPosition="result" apireferenceurl= https://reference.aspose.cloud/cells/#/LightCells/PostClearObjects >}}
{{< blocks/products/cells/cells-cloud-api-template btName="RunCode" OutResultType="Variable" OutResultDataType="Class" ResultPosition="result" apireferenceurl= https://reference.aspose.cloud/cells/#/LightCells/PostClearObjects >}}
{{< blocks/products/cells/cells-cloud-upload>}}

{{< blocks/products/cells/cells-cloud-parameters itName="objecttype" required="true" prompt="chart/comment/picture/shape/listobject/hyperlink/oleobject/pivottable/validation/Background">}}
{{% blocks/products/cells/cells-cloud-showcode %}}
{{< blocks/products/cells/cells-cloud-parameters itName="objecttype" required="True" prompt="chart/comment/picture/shape/listobject/hyperlink/oleobject/pivottable/validation/Background">}}
{{< blocks/products/cells/cells-cloud-parameters itName="sheetname" required="False" prompt="The worksheet name, specify the scope of the deletion.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="outFormat" required="False" prompt="The output data file format.(CSV/XLS/HTML/MHTML/ODS/PDF/XML/TXT/TIFF/XLSB/XLSM/XLSX/XLTM/XLTX/XPS/PNG/JPG/JPEG/GIF/EMF/BMP/MD[Markdown]/Numbers)">}}
{{< blocks/products/cells/cells-cloud-parameters itName="password" required="False" prompt="The password needed to open an Excel file.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="checkExcelRestriction" required="False" prompt="Whether check restriction of excel file when user modify cells related objects.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="region" required="False" prompt="The regional settings for workbook.">}}
{{% blocks/products/cells/cells-cloud-showcode request="objecttype,sheetname,outFormat,password,checkExcelRestriction,region" requestvalue=",Sheet1,,,true," %}}

```cs

using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Collections.Generic;
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string filePath = "test.txt";
PostClearObjectsRequest request = new PostClearObjectsRequest();
request.File = new Dictionary<string, Stream>();
var request = new PostClearObjectsRequest();
request.File = new Dictionary<string, Stream>();
string filePath = "Book1.xlsx";
Stream fileStream = File.OpenRead(filePath);
request.File.Add(filePath, fileStream);
request.objecttype = "Background";
Aspose.Cells.Cloud.SDK.Model.FilesResult result = cellsApi.PostClearObjects(request);
fileStream.Close();
request.File.Add(filePath, fileStream);
request.objecttype = "";
request.sheetname = "Sheet1";
request.outFormat = "";
request.password = "";
request.checkExcelRestriction = true;
request.region = "";
var result = cellsApi.PostClearObjects(request);
fileStream.Close();

```
{{% /blocks/products/cells/cells-cloud-showcode %}}
Expand Down
65 changes: 40 additions & 25 deletions cells/en/net/conversion/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Converting Excel file formats using C#
description: Aspose.Cells Cloud REST API supports Excel file format conversion using C# and offers SDKs for multiple programming languages.
title: Converting Excel file formats using C#
description: Aspose.Cells Cloud REST API supports Excel file format conversion using C# and offers SDKs for multiple programming languages.

---
{{< blocks/products/pf/main-wrap-class >}}
Expand All @@ -9,17 +9,25 @@ description: Aspose.Cells Cloud REST API supports Excel file format conversion u
{{< blocks/products/pf/main-container pfName="Aspose.Cells Cloud" subTitlepfName="Cells Cloud Feature" >}}
{{< blocks/products/pf/agp/feature-section isGrey="true" >}}
{{% blocks/products/cells/cells-cloud-api-http-method apiname="PUT" apiurl=https://api.aspose.cloud/v3.0/cells/convert %}}

{{< /blocks/products/pf/agp/feature-section >}}

{{< blocks/products/cells/cells-cloud-api-template btName="Convert" OutResultType="File" OutResultDataType="Stream" ResultPosition="stream" apireferenceurl=https://apireference.aspose.cloud/cells/#/Conversion/PutConvertWorkbook >}}
{{< blocks/products/cells/cells-cloud-upload>}}
{{< blocks/products/cells/cells-cloud-parameters itName="format" required="true" prompt="The format to convert(CSV/XLS/HTML/MHTML/ODS/PDF/XML/TXT/TIFF/XLSB/XLSM/XLSX/XLTM/XLTX/XPS/PNG/JPG/JPEG/GIF/EMF/BMP/MD[Markdown]/Numbers).">}}
{{< blocks/products/cells/cells-cloud-parameters itName="streamFormat" required="true" prompt="The format of the input file stream.">}}
{{< /blocks/products/pf/agp/feature-section >}}

{{< blocks/products/cells/cells-cloud-api-template btName="RunCode" OutResultType="File" OutResultDataType="Stream" ResultPosition="stream" apireferenceurl=https://apireference.aspose.cloud/cells/#/Conversion/PutConvertWorkbook >}}
{{< blocks/products/cells/cells-cloud-upload>}}

{{< blocks/products/cells/cells-cloud-parameters itName="format" required="False" prompt="The format to convert(CSV/XLS/HTML/MHTML/ODS/PDF/XML/TXT/TIFF/XLSB/XLSM/XLSX/XLTM/XLTX/XPS/PNG/JPG/JPEG/GIF/EMF/BMP/MD[Markdown]/Numbers).">}}
{{< blocks/products/cells/cells-cloud-parameters itName="password" required="False" prompt="The password needed to open an Excel file.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="outPath" required="False" prompt="Path to save the result. If it's a single file, the `outPath` should encompass both the filename and extension. In the case of multiple files, the `outPath` should only include the folder.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="storageName" required="False" prompt="The storage name where the file is situated.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="checkExcelRestriction" required="False" prompt="Whether check restriction of excel file when user modify cells related objects.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="streamFormat" required="False" prompt="The format of the input file stream. ">}}
{{< blocks/products/cells/cells-cloud-parameters itName="region" required="False" prompt="The regional settings for workbook.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="pageWideFitOnPerSheet" required="False" prompt="The page wide fit on worksheet.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="pageTallFitOnPerSheet" required="False" prompt="The page tall fit on worksheet.">}}

{{% blocks/products/cells/cells-cloud-showcode request="format,password,outPath,storageName,checkExcelRestriction,streamFormat,region,pageWideFitOnPerSheet,pageTallFitOnPerSheet" requestvalue="pdf,,,,true,,,true,true" %}}


{{% blocks/products/cells/cells-cloud-showcode %}}

```cs

using Aspose.Cells.Cloud.SDK.Api;
Expand All @@ -28,19 +36,26 @@ description: Aspose.Cells Cloud REST API supports Excel file format conversion u
using System.IO;
using System.Collections.Generic;
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string filePath = "test.txt";
string filePath = "Book1.xlsx";
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();

```
{{% /blocks/products/cells/cells-cloud-showcode %}}
{{< /blocks/products/cells/cells-cloud-api-template >}}
request.format = "pdf";
request.password = "";
request.outPath = "";
request.storageName = "";
request.checkExcelRestriction = true;
request.streamFormat = "";
request.region = "";
request.pageWideFitOnPerSheet = true;
request.pageTallFitOnPerSheet = true;
var result = cellsApi.PutConvertWorkbook(request);
fileStream.Close();

```
{{% /blocks/products/cells/cells-cloud-showcode %}}
{{< /blocks/products/cells/cells-cloud-api-template >}}



Expand All @@ -54,9 +69,9 @@ description: Aspose.Cells Cloud REST API supports Excel file format conversion u
<li><b>Web:</b> Html, Mhtml</li>
<li><b>Images:</b> Png, Jpg, Gif, Emf</li>
<li><b>Other:</b> Pdf, Json, Markdown</li>
{{< /blocks/products/cells/cells-cloud-language-cardlist >}}
{{< /blocks/products/cells/cells-cloud-language-cardlist >}}




{{< blocks/products/cells/cells-cloud-language-cardlist title="Output Format">}}
<li><b>Microsoft Excel:</b> Xls, Xlsx, Xlsb, Xlsm, Xlt, Xltx, Xltm</li>
Expand All @@ -67,18 +82,18 @@ description: Aspose.Cells Cloud REST API supports Excel file format conversion u
<li><b>Web:</b> Html, Mhtml</li>
<li><b>Images:</b> Png, Jpg, Gif, Emf, Svg, Tiff</li>
<li><b>Other:</b> Pdf, Xps, Dif, Json, Markdown, Sql</li>
{{< /blocks/products/cells/cells-cloud-language-cardlist >}}
{{< /blocks/products/cells/cells-cloud-language-cardlist >}}




{{< /blocks/products/cells/cells-cloud-language-card >}}




{{< blocks/products/cells/product-card-row title="Popular Operates" >}}

{{< blocks/products/cells/cells-cloud-card-popular pfName="Aspose.Cells Cloud SDK for Net" title="Conversion Xlsx to Pdf" imgSrc="/cells/app-logos/cells_cloud_conversion.svg" productLink="/cells/net/conversion/xlsx-to-pdf/" >}}

{{< blocks/products/cells/cells-cloud-card-popular pfName="Aspose.Cells Cloud SDK for Net" title="Conversion Xlsx to Json" imgSrc="/cells/app-logos/cells_cloud_conversion.svg" productLink="/cells/net/conversion/xlsx-to-json/" >}}
Expand Down
32 changes: 20 additions & 12 deletions cells/en/net/export/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,37 @@ description: Aspose.Cells Cloud REST API supports exporting workbook and interna
{{< blocks/products/pf/agp/feature-section isGrey="true" >}}
{{% blocks/products/cells/cells-cloud-api-http-method apiname="POST" apiurl=https://api.aspose.cloud/v3.0/cells/export %}}
{{< /blocks/products/pf/agp/feature-section >}}
{{< blocks/products/cells/cells-cloud-api-template btName="Export" OutResultType="Variable" OutResultDataType="Class" ResultPosition="result" apireferenceurl= https://reference.aspose.cloud/cells/#/DataProcessing/PostExport >}}
{{< blocks/products/cells/cells-cloud-api-template btName="RunCode" OutResultType="Variable" OutResultDataType="Class" ResultPosition="result" apireferenceurl= https://reference.aspose.cloud/cells/#/DataProcessing/PostExport >}}
{{< blocks/products/cells/cells-cloud-upload>}}
{{< blocks/products/cells/cells-cloud-parameters itName="format" required="true" prompt="The format to convert(CSV/XLS/HTML/MHTML/ODS/PDF/XML/TXT/TIFF/XLSB/XLSM/XLSX/XLTM/XLTX/XPS/PNG/JPG/JPEG/GIF/EMF/BMP/MD[Markdown]/Numbers).">}}
{{< blocks/products/cells/cells-cloud-parameters itName="objectType" required="true" prompt="workbook/worksheet/chart/comment/picture/shape/listobject/oleobject">}}
{{% blocks/products/cells/cells-cloud-showcode %}}
{{< blocks/products/cells/cells-cloud-parameters itName="objectType" required="False" prompt="Exported object type:workbook/worksheet/chart/comment/picture/shape/listobject/oleobject.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="format" required="False" prompt="The conversion format(CSV/XLS/HTML/MHTML/ODS/PDF/XML/TXT/TIFF/XLSB/XLSM/XLSX/XLTM/XLTX/XPS/PNG/JPG/JPEG/GIF/EMF/BMP/MD[Markdown]/Numbers).">}}
{{< blocks/products/cells/cells-cloud-parameters itName="password" required="False" prompt="The password needed to open an Excel file.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="checkExcelRestriction" required="False" prompt="Whether check restriction of excel file when user modify cells related objects.">}}
{{< blocks/products/cells/cells-cloud-parameters itName="region" required="False" prompt="The regional settings for workbook.">}}
{{% blocks/products/cells/cells-cloud-showcode request="objectType,format,password,checkExcelRestriction,region" requestvalue=",pdf,,true," %}}

```cs

using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Collections.Generic;
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string filePath = "test.txt";
PostExportRequest request = new PostExportRequest();
request.File = new Dictionary<string, Stream>();
var request = new PostExportRequest();
request.File = new Dictionary<string, Stream>();
string filePath = "Book1.xlsx";
Stream fileStream = File.OpenRead(filePath);
request.File.Add(filePath, fileStream);
request.format = "xps";
request.objectType = "Background";
Aspose.Cells.Cloud.SDK.Model.FilesResult result = cellsApi.PostExport(request);
fileStream.Close();
request.File.Add(filePath, fileStream);
request.objectType = "";
request.format = "pdf";
request.password = "";
request.checkExcelRestriction = true;
request.region = "";
var result = cellsApi.PostExport(request);
fileStream.Close();

```
{{% /blocks/products/cells/cells-cloud-showcode %}}
Expand Down
Loading

0 comments on commit e09ab60

Please sign in to comment.