OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
686 stars 95 forks source link

in office.word, is there any api for setting 'header from top' and 'footer from bottom'? #1790

Closed waveheart closed 3 years ago

waveheart commented 3 years ago

i need set default value of the 'header from top' , 'footer from bottom', i did not found any api for it. and for setting margin of the word.body, i did not found any api either.

lindalu-MSFT commented 3 years ago

Can you explain what you are trying to do? Are you using VBA, VSTO, JavaScript... Please provide your platform, Word version, language, etc. so we can triage. Here is the template:

Expected Behavior

Current Behavior

Steps to Reproduce, or Live Example

Context

Your Environment

Useful logs

RuoyingLiang commented 3 years ago

Thanks for reaching out. Currently there is no API to set the position of header and footer. You can set header/footer's body to target style. Add the request to backlog. Could you please submit the request with your scenario in https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform ?