Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The Cells class exposes a MemorySetting property that can be used to optimize memory usage for cell data, thereby decreasing overall memory consumption. The following example shows how to write large data to a worksheet in optimized mode.
C#
//Instantiate a new Workbook
Workbook book = new Workbook();
//Set the memory preferences
book.Settings.MemorySetting = MemorySetting.MemoryPreference;
//To change the memory setting of existing sheets, please change the memory setting for them manually:
Cells cells = book.Worksheets[0].Cells;
cells.MemorySetting = MemorySetting.MemoryPreference;
//Input large dataset into the cells of the worksheet
//Your code goes here
The memory settings will not work for the default sheet automatically created by the Workbook object. In order to change the memory settings of existing sheets, please apply the memory setting manually before performing any data manipulation.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.