Skip to content

Commit c50eae9

Browse files
committed
update references and apis according to latest official release
1 parent 1e2c5eb commit c50eae9

36 files changed

+97
-83
lines changed

Examples.GridWeb/springdemo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>com.aspose</groupId>
5656
<artifactId>aspose-cells</artifactId>
57-
<version>20.4</version>
57+
<version>21.8</version>
5858
<classifier>gridweb</classifier>
5959
</dependency>
6060
<dependency>

Examples/.classpath

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<attribute name="maven.pomderived" value="true"/>
2222
</attributes>
2323
</classpathentry>
24-
<classpathentry kind="lib" path="libs/bcprov-jdk15on-160.jar"/>
2524
<classpathentry kind="lib" path="libs/jai_codec-1.1.3.jar"/>
2625
<classpathentry kind="lib" path="libs/jai_core-1.1.3.jar"/>
2726
<classpathentry kind="lib" path="libs/jai_imageio-1.1.jar"/>
-4 MB
Binary file not shown.

Examples/pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,23 @@
3535
<dependency>
3636
<groupId>com.aspose</groupId>
3737
<artifactId>aspose-cells</artifactId>
38-
<version>20.10</version>
38+
<version>21.8</version>
3939
</dependency>
4040
<dependency>
4141
<groupId>com.aspose</groupId>
4242
<artifactId>aspose-cells</artifactId>
43-
<version>20.10</version>
43+
<version>21.8</version>
4444
<classifier>javadoc</classifier>
4545
</dependency>
4646
<dependency>
4747
<groupId>org.bouncycastle</groupId>
4848
<artifactId>bcprov-jdk15on</artifactId>
4949
<version>1.60</version>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.bouncycastle</groupId>
53+
<artifactId>bcpkix-jdk15on</artifactId>
54+
<version>1.60</version>
5055
</dependency>
5156
</dependencies>
5257
</project>

Examples/src/AsposeCellsExamples/Data/DateDataValidation.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
package AsposeCellsExamples.Data;
22

3-
import com.aspose.cells.*;
3+
import com.aspose.cells.CellArea;
4+
import com.aspose.cells.Cells;
5+
import com.aspose.cells.OperatorType;
6+
import com.aspose.cells.SaveFormat;
7+
import com.aspose.cells.Style;
8+
import com.aspose.cells.Validation;
9+
import com.aspose.cells.ValidationAlertType;
10+
import com.aspose.cells.ValidationCollection;
11+
import com.aspose.cells.ValidationType;
12+
import com.aspose.cells.Workbook;
13+
414
import AsposeCellsExamples.Utils;
515

616
public class DateDataValidation {
@@ -75,7 +85,7 @@ public static void main(String[] args) throws Exception {
7585
validation.setShowInput(true);
7686

7787
// Save the excel file.
78-
workbook.save(dataDir + "DDValidation_out.xls", FileFormatType.EXCEL_97_TO_2003);
88+
workbook.save(dataDir + "DDValidation_out.xls");
7989

8090
// Print message
8191
System.out.println("Process completed successfully");

Examples/src/AsposeCellsExamples/Data/GetAddressCellCountOffsetEntireColumnAndEntireRowOfTheRange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void main(String[] args) throws Exception {
2323

2424
// Print range address and cell count.
2525
System.out.println("Range Address: " + rng.getAddress());
26-
System.out.println("Cell Count: " + rng.getCellCount());
26+
System.out.println("Cell Count: " + rng.getRowCount() * rng.getColumnCount());
2727

2828
// Formatting console output.
2929
System.out.println("----------------------");

Examples/src/AsposeCellsExamples/Data/TextLengthDataValidation.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
package AsposeCellsExamples.Data;
22

3-
import com.aspose.cells.*;
3+
import com.aspose.cells.CellArea;
4+
import com.aspose.cells.Cells;
5+
import com.aspose.cells.OperatorType;
6+
import com.aspose.cells.SaveFormat;
7+
import com.aspose.cells.Style;
8+
import com.aspose.cells.Validation;
9+
import com.aspose.cells.ValidationAlertType;
10+
import com.aspose.cells.ValidationCollection;
11+
import com.aspose.cells.ValidationType;
12+
import com.aspose.cells.Workbook;
13+
414
import AsposeCellsExamples.Utils;
515

616
public class TextLengthDataValidation {
@@ -71,7 +81,7 @@ public static void main(String[] args) throws Exception {
7181
validation.setShowInput(true);
7282

7383
// Save the excel file.
74-
workbook.save(dataDir + "TLDValidation_out.xls", FileFormatType.EXCEL_97_TO_2003);
84+
workbook.save(dataDir + "TLDValidation_out.xls");
7585

7686
// Print message
7787
System.out.println("Process completed successfully");

Examples/src/AsposeCellsExamples/Data/TimeDataValidation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void main(String[] args) throws Exception {
7575
validation.setShowInput(true);
7676

7777
// Save the excel file.
78-
workbook.save(dataDir + "TDValidation_out.xls", FileFormatType.EXCEL_97_TO_2003);
78+
workbook.save(dataDir + "TDValidation_out.xls");
7979

8080
// Print message
8181
System.out.println("Process completed successfully");

Examples/src/AsposeCellsExamples/Introduction/CreatingWorkbook.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import java.io.FileInputStream;
44

55
import com.aspose.cells.Cell;
6-
import com.aspose.cells.FileFormatType;
76
import com.aspose.cells.License;
7+
import com.aspose.cells.SaveFormat;
88
import com.aspose.cells.Workbook;
99
import com.aspose.cells.Worksheet;
10+
1011
import AsposeCellsExamples.Utils;
1112

1213
public class CreatingWorkbook {
@@ -36,7 +37,7 @@ public static void main(String[] args) throws Exception {
3637
cell.setValue("Hello World!");
3738

3839
// Save the Microsoft Excel file.
39-
wb.save(dataDir + "CreatingWorkbook_out.xls", FileFormatType.EXCEL_97_TO_2003);
40+
wb.save(dataDir + "CreatingWorkbook_out.xls");
4041
wb.save(dataDir + "CreatingWorkbook_out.xlsx");
4142
wb.save(dataDir + "CreatingWorkbook_out.ods");
4243

Examples/src/AsposeCellsExamples/Introduction/OpeningExistingFile.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package AsposeCellsExamples.Introduction;
22

33
import com.aspose.cells.Cell;
4-
import com.aspose.cells.FileFormatType;
4+
import com.aspose.cells.SaveFormat;
55
import com.aspose.cells.Workbook;
6+
67
import AsposeCellsExamples.Utils;
78

89
public class OpeningExistingFile {
@@ -28,7 +29,7 @@ public static void main(String[] args) throws Exception {
2829
cell.setValue("Hello World!");
2930

3031
// Write the Excel file
31-
workbook.save(dataDir + "OpeningExistingFile_out.xls", FileFormatType.EXCEL_97_TO_2003);
32+
workbook.save(dataDir + "OpeningExistingFile_out.xls");
3233
workbook.save(dataDir + "OpeningExistingFile_out.xlsx");
3334
workbook.save(dataDir + "OpeningExistingFile_out.ods");
3435
}

0 commit comments

Comments
 (0)