Skip to content

Instantly share code, notes, and snippets.

@aspose-cells-gists
Last active October 24, 2024 09:12
Show Gist options
  • Select an option

  • Save aspose-cells-gists/eb9faad10b8effdcfe82e35b25d5a3c0 to your computer and use it in GitHub Desktop.

Select an option

Save aspose-cells-gists/eb9faad10b8effdcfe82e35b25d5a3c0 to your computer and use it in GitHub Desktop.
Aspose.Cells for Node.js via Java
This Gist contains code example snippets for Aspose.Cells for Node.js via Java.
// 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