パブリック API Aspose.Cells 8.0.1 の変更点

Cells クラスに追加された MemorySetting プロパティ

Cells クラスは、セル データのメモリ使用量を最適化するために使用できる setMemorySetting および getMemorySetting メソッドを公開し、全体的なメモリ コストを削減します。次の例は、最適化モードで大きなデータをワークシートに書き込む方法を示しています。

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