Skip to content

Commit ae4714c

Browse files
committed
update readme
1 parent 597792d commit ae4714c

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,30 @@ To get started with Aspose.Cells Cloud for .NET, follow these steps:
7474

7575
1. Create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) and obtain your application information.
7676
2. execute `Install-Package Aspose.Cells-Cloud` from the Package Manager Console in Visual Studio to fetch & reference Aspose.Cells Cloud SDK assembly in your project.If you already have Aspose.Cells Cloud for .NET and want to upgrade it, please execute `Update-Package Aspose.Cells-Cloud` to get the latest version.
77+
3. You need to set your CellsCloudClientId and CellsCloudClientSecret in the environment variables.
7778

7879
```csharp
79-
CellsApi cellsApi =CellsApi(clientId, clientSecret);
80-
string name = "Input.xlsx";
81-
string sheetName = "Sheet1";
82-
int? position = 1;
83-
string sheettype = "VB";
84-
string folder = null;
85-
UpdateDataFile(folder, name);
86-
var response = cellsApi.CellsWorksheetsPutAddNewWorksheet(name, sheetName, position, sheettype, folder);
80+
namespace Aspose.Cells.Cloud.SDK.Example
81+
{
82+
using Aspose.Cells.Cloud.SDK.Api;
83+
using Aspose.Cells.Cloud.SDK.Request;
84+
using System;
85+
using System.Collections.Generic;
86+
using System.IO;
87+
88+
public partial class CellsApiExample
89+
{
90+
public void PutConvertWorkbookHtmlExample()
91+
{
92+
CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret"));
93+
IDictionary<string, Stream> mapFiles = new Dictionary<string, Stream>();
94+
mapFiles.Add("Book1.xlsx", File.OpenRead(@"TestData\Book1.xlsx"));
95+
PutConvertWorkbookRequest request = new PutConvertWorkbookRequest { File = mapFiles, format = "html" };
96+
cellsApi.PutConvertWorkbook(request);
97+
}
98+
}
99+
100+
}
87101
```
88102

89103
## Aspose.Cells Cloud SDKs in Popular Languages

0 commit comments

Comments
 (0)