Да, вы можете использовать customProperties
, то есть Excel.CustomPropertyCollection
класс
Вот пример кода:
await Excel.run(async (context) => {
let docProperties = context.workbook.properties;
docProperties.load(
"author, lastAuthor, revisionNumber, title, subject, keywords, comments, category, manager, company, creationDate"
);
await context.sync();
console.log("Author: " + docProperties.author);
console.log("Title: " + docProperties.title);
console.log("Subject: " + docProperties.subject);
});
Документ можно найти по адресу: https://docs.microsoft.com/en-us/javascript/api/excel/excel.documentproperties?view=excel-js-preview