Я пытался использовать office.js для установки заголовка, но ошибка кода:
dev doc: https://docs.microsoft.com/zh-cn/javascript/api/excel/excel.headerfooter?view=office-js
https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/bb225426(v=office.12)
мой код:
function text() { Excel.run(function (context) { const myr = context.workbook.worksheets.getItem("Sheet1"); myr.HeaderFooter.centerFooter = "&Z"; return context.sync(); }).catch(errorHandler); };
Буду признателен за любую помощь или руководство!