عرض الصيغ بدلاً من القيم في ورقة عمل باستخدام Node.js عبر C++
Contents
[
Hide
]
من الممكن عرض الصيغ بدلاً من القيم المحسوبة في Microsoft Excel باستخدام خيار إظهار الصيغ من شريط الصيغ. عندما يتم عرض الصيغ، يعرض Microsoft Excel الصيغ في ورقة العمل. يمكنك تحقيق الشيء ذاته باستخدام Aspose.Cells for Node.js via C++.
توفر Aspose.Cells خاصية اختيار التحقق من الأخطاء. تدير فئة {0} أنواع مختلفة من فحوصات الأخطاء، على سبيل المثال، الأرقام المخزنة كنص، أخطاء حساب الصيغ، وأخطاء التحقق من الصحة. استخدم تعداد {1} لضبط نوع التحقق من الأخطاء المطلوب.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "source.xlsx");
// Load the source workbook
const workbook = new AsposeCells.Workbook(filePath);
// Access the first worksheet
const worksheet = workbook.getWorksheets().get(0);
// Show formulas of the worksheet
worksheet.setShowFormulas(true);
// Save the workbook
workbook.save(path.join(dataDir, ".out.xlsx"));