Pubblico API Modifiche Aspose.Cells 8.0.1

Proprietà MemorySetting Aggiunta alla classe Cells

Cells ha esposto i metodi setMemorySetting e getMemorySetting che possono essere utilizzati per ottimizzare l’utilizzo della memoria per i dati delle celle e quindi ridurre il costo complessivo della memoria. L’esempio seguente mostra come scrivere dati di grandi dimensioni in un foglio di lavoro in modalità ottimizzata.

Java

 //Instantiate a new Workbook

Workbook book = new Workbook();

//Set the memory preferences

book.getSettings().setMemorySetting(MemorySetting.MEMORY_PREFERENCE);

//To change the memory setting of existing sheets, please change memory setting for them manually:

Cells cells = book.getWorksheets().get(0).getCells();

cells.setMemorySetting(MemorySetting.MEMORY_PREFERENCE);

//Input large dataset into the cells of the worksheet.

//Your code goes here