-
Notifications
You must be signed in to change notification settings - Fork 96
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
Opening word document from dialog #4905
Comments
Hi @ishanig11 - could you provide more detail on your environment, specifically (1) the host Office application and (2) platform that this issue is occurring on? This will help us find the right person to answer your question. |
I am using online word. |
Hi @ishanig11 Based on this reference: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/dialog-api-in-office-add-ins, The messageParent function is one of only two Office JS APIs that can be called in the dialog box. The other JS API that can be called in the dialog box is Office.context.requirements.isSetSupported. So we don't support to context.application.createDocument(fileContent) on dialog. |
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! |
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue. |
I have build dialog using office dialog API.
This dialog displays office documents. When user select any document, I want to open that in new tab.
I used API context.application.createDocument(fileContent) for the same.
var doc = context.application.createDocument(fileContent) ;
doc.open();
but no tab gets opened. I see above 2 lines get executed successfully. Same code works fine if I call it from taskpane.
The text was updated successfully, but these errors were encountered: