Coder Social home page Coder Social logo

Comments (8)

adeelumarit avatar adeelumarit commented on August 10, 2024

Hi @shanshanzheng-dev is there any update?

from office-js.

shanshanzheng-dev avatar shanshanzheng-dev commented on August 10, 2024

Hi @adeelumarit, Thanks for reporting. there is a code example for how to use footnote: https://learn.microsoft.com/en-us/javascript/api/word/word.body?view=word-js-preview#word-word-body-footnotes-member, you can try this: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/manage-footnotes.yaml
It works on my side. Thanks.

from office-js.

adeelumarit avatar adeelumarit commented on August 10, 2024

Hi @shanshanzheng-dev i have checked this is working on the web but not on desktop word addin
same code i have tried for web it works but not in desktop

from office-js.

adeelumarit avatar adeelumarit commented on August 10, 2024

Hi @shanshanzheng-dev

image

geting this error while i try script lab on desktop but it is working on web

{
"stack": "RichApi.Error: NotImplemented\n at new n (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:25:269007)\n at i.processRequestExecutorResponseMessage (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:25:333454)\n at https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:25:331517",
"message": "NotImplemented",
"name": "RichApi.Error",
"code": "NotImplemented",
"traceMessages": [],
"innerError": null,
"debugInfo": {
"code": "NotImplemented",
"message": "NotImplemented",
"errorLocation": "Range.insertFootnote",
"statement": "var insertFootnote = selection.insertFootnote(...);",
"surroundingStatements": [
"var root = context.root;",
"var selection = root.getSelection();",
"// Instantiate {selection}",
"// >>>>>",
"var insertFootnote = selection.insertFootnote(...);",
"// <<<<<",
"// Instantiate {insertFootnote}"
],
"fullStatements": [
"Please enable config.extendedErrorLogging to see full statements."
]
},
"httpStatusCode": 400
}

from office-js.

shanshanzheng-dev avatar shanshanzheng-dev commented on August 10, 2024

Hi @adeelumarit It still works on desktop from my side.
image
This is my word version:
image

from office-js.

adeelumarit avatar adeelumarit commented on August 10, 2024

Hi @shanshanzheng-dev
I have version 2108(14332.20706 click to run)
still getting same error

from office-js.

jipyua avatar jipyua commented on August 10, 2024

hi @adeelumarit, thanks for letting us know this case. Footnote API is introduced in Word API requirement set 1.5 and the supported build number must be above Version 2302 (Build 16130.20332). Yours is showing a NotImplemented error which means the build doesn't cotain the API yet. Please update your office to latest M365 version and have a try. thanks.

from office-js.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 10, 2024

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.