XmlMapCollection.Add yöntemi kullanılarak XmlMap içeren çalışma kitabına XML Haritası ekleyin ve Node.js via C++ ile
Contents
[
Hide
]
Olası Kullanım Senaryoları
Aspose.Cells, XML Haritasını kitap içine eklemek için kullanabileceğiniz XmlMapCollection.add(string) yöntemi sağlar.
XmlMapCollection.Add yöntemini kullanarak İçine ‘XmlMap’ ekleyin
Aşağıdaki örnek kod, Kitap içine XML Haritası ekler ve çıktı excel dosyasını olarak kaydeder. Ekran görüntüsü, örnek.xml içinden alınan XML Haritasını gösterir.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Create workbook object
const wb = new AsposeCells.Workbook();
// Add xml map found inside the sample.xml inside the workbook
wb.getWorksheets().getXmlMaps().add(path.join(dataDir, "sample.xml"));
// Save the workbook in xlsx format
wb.save(path.join(dataDir, "output_out.xlsx"));