How to pass model to Office 365 Dialog from Word 2016?

前端 未结 1 2005
花落未央
花落未央 2020-12-20 23:55

I was playing with Office 365 add-in for MS word. I have a dialog to manipulate selected word image. I need to pass that image (maybe a Base64 value of that) to my dialog so

相关标签:
1条回答
  • 2020-12-20 23:59

    There are at least two ways to pass things to the dialog:

    • Pass it as a query parameter on the URL that you pass to displayDialogAsync()
    • Store it in window.localStorage in the host script and retrieve it from there in script on the dialog page.

    UPDATE: You can vote up this Office Dev User Voice request for better communication between the dialog and its host: https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/17196659-improve-custom-dialog

    0 讨论(0)
提交回复
热议问题