Füllen Sie zuerst die Daten nach Zeile und dann nach Spalte aus

Contents
[ ]

Das Einsetzen von Daten in die Folge A1, B1, A2, B2 ist schneller als A1, A2, B1, B2. Wenn es viele Zellen in einem Arbeitsblatt gibt und Sie die zweite Sequenz befolgen, das heißt, Sie füllen die Daten Zeile für Zeile ein, kann dieser Tipp das Programm wesentlich schneller machen.

const AsposeCells = require("aspose.cells.node");
const path = require("path");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Create a workbook
let workbook = new AsposeCells.Workbook();
// Populate Data into Cells
let cells = workbook.getWorksheets().get(0).getCells();
cells.get("A1").putValue("data1");
cells.get("B1").putValue("data2");
cells.get("A2").putValue("data3");
cells.get("B2").putValue("data4");
// Save workbook
workbook.save(path.join(dataDir, "output_out.xlsx"));