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

Opening word document from dialog #4905

Closed
ishanig11 opened this issue Sep 18, 2024 · 5 comments
Closed

Opening word document from dialog #4905

ishanig11 opened this issue Sep 18, 2024 · 5 comments
Assignees
Labels
Area: Word Issue related to Word add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Platform: Online Issues occurred on online platform Status: no recent activity Issue or PR is stale (no recent activity) Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs

Comments

@ishanig11
Copy link

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Sep 18, 2024
@michelleranmsft michelleranmsft added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Sep 19, 2024
@michelleranmsft
Copy link
Member

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.

@ishanig11
Copy link
Author

I am using online word.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Sep 20, 2024
@michelleranmsft michelleranmsft added Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs Area: Word Issue related to Word add-ins Platform: Online Issues occurred on online platform labels Sep 20, 2024
@shanshanzheng-dev
Copy link
Contributor

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.
We recommend you to upvote or submit a new Tech Community New Ideas item, this will give us visibility of the commonality of it and will help with our prioritization. If we end up working on this issue, we will re-activate as needed.    Microsoft 365 Developer Platform - Microsoft Community Hub

@shanshanzheng-dev shanshanzheng-dev added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Sep 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Sep 28, 2024
Copy link
Contributor

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!

Copy link
Contributor

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Word Issue related to Word add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Platform: Online Issues occurred on online platform Status: no recent activity Issue or PR is stale (no recent activity) Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs
Projects
None yet
Development

No branches or pull requests

4 participants