Last active
October 24, 2024 09:12
-
-
Save aspose-cells-gists/eb9faad10b8effdcfe82e35b25d5a3c0 to your computer and use it in GitHub Desktop.
Aspose.Cells for Node.js via Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This Gist contains code example snippets for Aspose.Cells for Node.js via Java. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
| //This example shows how to optimize memory usage while working with large data in Aspose.Cells for Node.js via Java | |
| var aspose = aspose || {}; | |
| aspose.cells = require("aspose.cells"); | |
| var workbook = new aspose.cells.Workbook(aspose.cells.FileFormatType.XLSX); | |
| // apply the setting to existing "Sheet1" | |
| workbook.getWorksheets().get(0).getCells().setMemorySetting(aspose.cells.MemorySetting.MEMORY_PREFERENCE); | |
| // apply the setting globally | |
| workbook.getSettings().setMemorySetting(aspose.cells.MemorySetting.MEMORY_PREFERENCE); | |
| // Input large dataset into the cells of the worksheet. Your code goes here. | |
| workbook.save("output.xlsx"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment