aspose.cells.node 25.1.0 → 25.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## aspose.cells.node
2
+
1
3
  Aspose.Cells for Node.js via C++ is a powerful and robust library designed for high-performance spreadsheet manipulation and management within Node.js applications. It offers a comprehensive set of features that enable developers to create, edit, convert, and render Excel files programmatically. Supporting all major Excel formats, including XLS, XLSX, XLSM, and more, it ensures compatibility and flexibility. This makes Aspose.Cells for Node.js via C++ a versatile tool for a wide range of data processing and management tasks, providing developers with a complete and efficient solution for integrating comprehensive Excel functionality into their Node.js applications.
2
4
 
3
5
  ## Key features
@@ -35,6 +37,35 @@ workbook.getWorksheets().get(0).getCells().get("A1").putValue("Hello World");
35
37
  workbook.save("hello-world.xlsx");
36
38
  ```
37
39
 
40
+ #### Open and save Excel file asynchronously
41
+ ``` js
42
+ const fs = require("fs");
43
+ const { Workbook, SaveFormat } = require("aspose.cells.node");
44
+
45
+ Workbook.openAsync("example.xlsx")
46
+ .then(workbook => {
47
+ workbook.calculateFormulaAsync()
48
+ .then(() => {
49
+ workbook.saveAsync(SaveFormat.Pdf)
50
+ .then((buffer) => {
51
+ var writeStream = fs.createWriteStream("example.pdf");
52
+ writeStream.write(buffer);
53
+ writeStream.end();
54
+ })
55
+ .catch(error => {
56
+ console.error(error);
57
+ });
58
+ })
59
+ .catch(error => {
60
+ console.error(error);
61
+ });
62
+
63
+ })
64
+ .catch(error => {
65
+ console.error(error);
66
+ });
67
+ ```
68
+
38
69
  #### Use **import** of ES6
39
70
  ``` js
40
71
  import AsposeCells from "aspose.cells.node";
@@ -186,4 +217,6 @@ console.log(cells.get("A8").getDoubleValue() == 15);
186
217
  console.log("done");
187
218
  ```
188
219
 
220
+ Please refer to [aspose.cells.node.samples](https://www.npmjs.com/package/aspose.cells.node.samples) package for more code samples.
221
+
189
222
  [Product Page](https://products.aspose.com/cells/nodejs-cpp) | [Product Documentation](https://docs.aspose.com/cells/nodejs-cpp/) | [Blog](https://blog.aspose.com/categories/aspose.cells-product-family/) |[API Reference](https://reference.aspose.com/cells/nodejs-cpp) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license)