1
-  [](https://products.aspose.cloud/cells/net/) [](https://docs.aspose.cloud/cells/) [](https://reference.aspose.cloud/cells/) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/tree/main/examples) [](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [](https://forum.aspose.cloud/c/cells/7) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE)
1
+  [](https://products.aspose.cloud/cells/net/) [](https://docs.aspose.cloud/cells/) [](https://reference.aspose.cloud/cells/) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/tree/main/examples) [](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [](https://forum.aspose.cloud/c/cells/7) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE)
2
2
3
3
# .NET package for Aspose.Cells Cloud
4
4
@@ -7,27 +7,24 @@ Enhance your .NET applications with the [Aspose.Cells Cloud](https://products.as
7
7
## Quick Start Guide
8
8
9
9
To get started with Aspose.Cells Cloud for .NET, follow these steps:
10
-
11
- 1 . Create an account at [ Aspose for Cloud] ( https://dashboard.aspose.cloud/#/apps ) and obtain your application information.
10
+ 1 . Create an account at [ Aspose for Cloud] ( https://dashboard.aspose.cloud/#/apps ) and obtain your ”Client Id" and "Client Secret".
12
11
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.
13
- 3 . You need to set your CellsCloudClientId and CellsCloudClientSecret in the environment variables.
14
12
15
13
``` csharp
16
14
namespace Aspose .Cells .Cloud .SDK .Example
17
15
{
18
16
using Aspose .Cells .Cloud .SDK .Api ;
19
17
using Aspose .Cells .Cloud .SDK .Request ;
20
18
using System ;
21
- using System .Collections .Generic ;
22
- using System .IO ;
23
19
24
20
public partial class CellsApiExample
25
21
{
26
- public void PutConvertWorkbookHtmlExample ()
22
+ public void ConvertSpreadsheetPDFExample ()
27
23
{
28
- CellsApi cellsApi = new CellsApi (Environment .GetEnvironmentVariable (" CellsCloudTestClientId" ), Environment .GetEnvironmentVariable (" CellsCloudTestClientSecret" ));
29
- PutConvertWorkbookRequest request = new PutConvertWorkbookRequest { LocalPath = " Book1.xlsx" , format = " html" };
30
- cellsApi .PutConvertWorkbook (request );
24
+ string clientId = " " ; // your client id;
25
+ string clientSecret = " " ; // your client secret;
26
+ CellsApi cellsApi = new CellsApi (clientId , clientSecret );
27
+ cellsApi .ConvertSpreadsheet (new ConvertSpreadsheetRequest { Spreadsheet = " EmployeeSalesSummary.xlsx" , format = " pdf" }, " EmployeeSalesSummary.pdf" );
31
28
}
32
29
}
33
30
0 commit comments