Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document settings #1952

Open
szilardd opened this issue May 18, 2020 · 2 comments
Open

Document settings #1952

szilardd opened this issue May 18, 2020 · 2 comments
Labels

Comments

@szilardd
Copy link

szilardd commented May 18, 2020

Is it possible to set document settings? (not custom properties)

Something similar to the office.js library?

Office.context.document.settings.set("Office.AutoShowTaskpaneWithDocument", true);

https://docs.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-a-task-pane-with-a-document#step-2-tag-the-document-to-automatically-open-the-task-pane

https://docs.microsoft.com/en-us/javascript/api/office/office.settings?view=word-js-preview

@SheetJSDev
Copy link
Contributor

Are those serialized in the file? Can you export a sample file so we can take a closer look?

Some settings like the original locale or custom delimiters are not stored in the file, they are only stored in the local Excel instance :(

@zoulou00
Copy link

zoulou00 commented May 19, 2021

@SheetJSDev, yes there are serialized in the file (xl/webextensions/webextension...xml)

File structure of webExtension.xml

`
<we:webextension xmlns:we="http://schemas.microsoft.com/office/webextensions/webextension/2010/11" ..>
<we:reference id... />
...
we:properties

<we:property name="mySettings" value="mySettingsValue" />
</we:properties>

...
</we:webextension>`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants