Verileri Önce Satır, Sonra Sütun Olarak Doldur
Contents
[
Hide
]
Bir elektronik tabloya verileri önce satır, sonra sütun olarak doldurmak genel performansı iyileştirir.
A1, B1, A2, B2 şeklinde veri yerleştirmek, A1, A2, B1, B2 şeklinde yerleştirmekten daha hızlıdır. Eğer bir çalışma sayfasında çok fazla hücre varsa ve ikinci sırayı takip ediyorsanız, yani verileri satır satır dolduruyorsanız, bu ipucu programı çok daha hızlı hale getirebilir.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); |