Skip to content

Commit 91b87b9

Browse files
committed
20220726 update : add 4 kinds of save option and update apis.
1 parent 833d30f commit 91b87b9

File tree

7 files changed

+392
-35
lines changed

7 files changed

+392
-35
lines changed

Aspose.Cells.Cloud.SDK/Api/LightCellsApi.cs

Lines changed: 44 additions & 28 deletions
Large diffs are not rendered by default.

Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<Description>This SDK allows you to work with Aspose.Cells Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost.</Description>
1212
<Copyright>MIT</Copyright>
1313
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
14-
<AssemblyVersion>22.6</AssemblyVersion>
15-
<FileVersion>22.6</FileVersion>
16-
<Version>22.6</Version>
14+
<AssemblyVersion>22.7</AssemblyVersion>
15+
<FileVersion>22.7</FileVersion>
16+
<Version>22.7</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="DifSaveOptions.cs">
3+
// Copyright (c) 2022 Aspose.Cells for Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace Aspose.Cells.Cloud.SDK.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
///
38+
/// </summary>
39+
[DataContract]
40+
public class DocxSaveOptions : SaveOptions
41+
{
42+
/// <summary>
43+
/// Get the string presentation of the object
44+
/// </summary>
45+
/// <returns>String presentation of the object</returns>
46+
public override string ToString()
47+
{
48+
var sb = new StringBuilder();
49+
sb.Append("class DocxSaveOptions {\n");
50+
sb.Append("}\n");
51+
return sb.ToString();
52+
}
53+
}
54+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="ImageSaveOptions.cs">
3+
// Copyright (c) 2022 Aspose.Cells for Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace Aspose.Cells.Cloud.SDK.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
///
38+
/// </summary>
39+
[DataContract]
40+
public class JsonSaveOptions : SaveOptions
41+
{
42+
/// <summary>
43+
/// Gets or sets ChartImageType
44+
/// </summary>
45+
[DataMember(Name= "ExportArea", EmitDefaultValue=false)]
46+
public CellArea ExportArea { get; set; }
47+
48+
/// <summary>
49+
/// Gets or sets EmbededImageNameInSvg
50+
/// </summary>
51+
[DataMember(Name= "HasHeaderRow", EmitDefaultValue=false)]
52+
public bool? HasHeaderRow { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets HorizontalResolution
56+
/// </summary>
57+
[DataMember(Name= "ExportAsString", EmitDefaultValue=false)]
58+
public bool? ExportAsString { get; set; }
59+
60+
/// <summary>
61+
/// Gets or sets ImageFormat
62+
/// </summary>
63+
[DataMember(Name= "Indent", EmitDefaultValue=false)]
64+
public string Indent { get; set; }
65+
66+
67+
68+
/// <summary>
69+
/// Get the string presentation of the object
70+
/// </summary>
71+
/// <returns>String presentation of the object</returns>
72+
public override string ToString()
73+
{
74+
var sb = new StringBuilder();
75+
sb.Append("class JsonSaveOptions {\n");
76+
sb.Append(" ExportArea: ").Append(this.ExportArea).Append("\n");
77+
sb.Append(" HasHeaderRow: ").Append(this.HasHeaderRow).Append("\n");
78+
sb.Append(" ExportAsString: ").Append(this.ExportAsString).Append("\n");
79+
sb.Append(" Indent: ").Append(this.Indent).Append("\n");
80+
sb.Append("}\n");
81+
return sb.ToString();
82+
}
83+
}
84+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="DifSaveOptions.cs">
3+
// Copyright (c) 2022 Aspose.Cells for Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace Aspose.Cells.Cloud.SDK.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
///
38+
/// </summary>
39+
[DataContract]
40+
public class PptxSaveOptions : SaveOptions
41+
{
42+
/// <summary>
43+
/// Get the string presentation of the object
44+
/// </summary>
45+
/// <returns>String presentation of the object</returns>
46+
public override string ToString()
47+
{
48+
var sb = new StringBuilder();
49+
sb.Append("class PptxSaveOptions {\n");
50+
sb.Append("}\n");
51+
return sb.ToString();
52+
}
53+
}
54+
}
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="ImageSaveOptions.cs">
3+
// Copyright (c) 2022 Aspose.Cells for Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace Aspose.Cells.Cloud.SDK.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
///
38+
/// </summary>
39+
[DataContract]
40+
public class SqlScriptSaveOptions : SaveOptions
41+
{
42+
/// <summary>
43+
/// Gets or sets CheckIfTableExists
44+
/// </summary>
45+
[DataMember(Name="CheckIfTableExists", EmitDefaultValue=false)]
46+
public bool? CheckIfTableExists { get; set; }
47+
48+
/// <summary>
49+
/// Gets or sets ColumnTypeMap
50+
/// </summary>
51+
[DataMember(Name="ColumnTypeMap", EmitDefaultValue=false)]
52+
public string ColumnTypeMap { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets CheckAllDataForColumnType
56+
/// </summary>
57+
[DataMember(Name="CheckAllDataForColumnType", EmitDefaultValue=false)]
58+
public bool? CheckAllDataForColumnType { get; set; }
59+
60+
/// <summary>
61+
/// Gets or sets AddBlankLineBetweenRows
62+
/// </summary>
63+
[DataMember(Name="AddBlankLineBetweenRows", EmitDefaultValue=false)]
64+
public bool? AddBlankLineBetweenRows { get; set; }
65+
66+
/// <summary>
67+
/// Gets or sets Separator
68+
/// </summary>
69+
[DataMember(Name="Separator", EmitDefaultValue=false)]
70+
public char? Separator { get; set; }
71+
72+
/// <summary>
73+
/// Gets or sets OperatorType
74+
/// </summary>
75+
[DataMember(Name="OperatorType", EmitDefaultValue=false)]
76+
public string OperatorType { get; set; }
77+
78+
/// <summary>
79+
/// Gets or sets PrimaryKey
80+
/// </summary>
81+
[DataMember(Name="PrimaryKey", EmitDefaultValue=false)]
82+
public int? PrimaryKey { get; set; }
83+
84+
/// <summary>
85+
/// Gets or sets CreateTable
86+
/// </summary>
87+
[DataMember(Name="CreateTable", EmitDefaultValue=false)]
88+
public bool? CreateTable { get; set; }
89+
90+
/// <summary>
91+
/// Gets or sets IdName
92+
/// </summary>
93+
[DataMember(Name="IdName", EmitDefaultValue=false)]
94+
public string IdName { get; set; }
95+
96+
/// <summary>
97+
/// Gets or sets StartId
98+
/// </summary>
99+
[DataMember(Name="StartId", EmitDefaultValue=false)]
100+
public int? StartId { get; set; }
101+
102+
/// <summary>
103+
/// Gets or sets TableName
104+
/// </summary>
105+
[DataMember(Name="TableName", EmitDefaultValue=false)]
106+
public string TableName { get; set; }
107+
108+
/// <summary>
109+
/// Gets or sets ExportAsString
110+
/// </summary>
111+
[DataMember(Name="ExportAsString", EmitDefaultValue=false)]
112+
public int? ExportAsString { get; set; }
113+
/// <summary>
114+
/// Gets or sets ExportArea
115+
/// </summary>
116+
[DataMember(Name = "ExportArea", EmitDefaultValue = false)]
117+
public CellArea ExportArea { get; set; }
118+
/// <summary>
119+
/// Gets or sets HasHeaderRow
120+
/// </summary>
121+
[DataMember(Name = "HasHeaderRow", EmitDefaultValue = false)]
122+
public bool? HasHeaderRow { get; set; }
123+
/// <summary>
124+
/// Get the string presentation of the object
125+
/// </summary>
126+
/// <returns>String presentation of the object</returns>
127+
public override string ToString()
128+
{
129+
var sb = new StringBuilder();
130+
sb.Append("class SqlScriptSaveOptions {\n");
131+
sb.Append(" CheckIfTableExists: ").Append(this.CheckIfTableExists).Append("\n");
132+
sb.Append(" ColumnTypeMap: ").Append(this.ColumnTypeMap).Append("\n");
133+
sb.Append(" CheckAllDataForColumnType: ").Append(this.CheckAllDataForColumnType).Append("\n");
134+
sb.Append(" AddBlankLineBetweenRows: ").Append(this.AddBlankLineBetweenRows).Append("\n");
135+
sb.Append(" Separator: ").Append(this.Separator).Append("\n");
136+
sb.Append(" OperatorType: ").Append(this.OperatorType).Append("\n");
137+
sb.Append(" PrimaryKey: ").Append(this.PrimaryKey).Append("\n");
138+
sb.Append(" CreateTable: ").Append(this.CreateTable).Append("\n");
139+
sb.Append(" IdName: ").Append(this.IdName).Append("\n");
140+
sb.Append(" StartId: ").Append(this.StartId).Append("\n");
141+
sb.Append(" TableName: ").Append(this.TableName).Append("\n");
142+
sb.Append(" ExportAsString: ").Append(this.ExportAsString).Append("\n");
143+
sb.Append(" ExportArea: ").Append(this.ExportArea).Append("\n");
144+
sb.Append(" HasHeaderRow: ").Append(this.HasHeaderRow).Append("\n");
145+
sb.Append("}\n");
146+
return sb.ToString();
147+
}
148+
}
149+
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Nuget](https://img.shields.io/nuget/v/Aspose.Cells-Cloud) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Cells-Cloud) ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-dotnet)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-dotnet/22.6)
1+
![Nuget](https://img.shields.io/nuget/v/Aspose.Cells-Cloud) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Cells-Cloud) ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-dotnet)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-dotnet/22.7)
22

33
# .NET SDK for Spreadsheet Processing in the Cloud
44

@@ -21,10 +21,10 @@ The Cloud SDK enhances your C#, ASP.NET, & other .NET-based cloud apps to [proce
2121
- [Leverage the power of Pivot Tables](https://docs.aspose.cloud/cells/working-with-pivot-tables/) & Ranges.
2222

2323

24-
## Feature & Enhancements in Version 22.6
24+
## Feature & Enhancements in Version 22.7
2525

26-
- Improve save as api.
27-
- Improve clear objects api.
26+
- Add 4 kinds of Save Option.
27+
- Add the checkExcelRestriction parameter for multiple APIs.
2828

2929
## Read & Write Spreadsheet Formats
3030

0 commit comments

Comments
 (0)