-
Notifications
You must be signed in to change notification settings - Fork 534
Description
Type of issue
Feature doesn't work (bug)
Feedback
We are using the following code to display a PDF in an iframe.
<iframe id="pdfiframe" class="hide" name="pdfiframe" title="PDF" frameborder="0" width="100%" height="900" scrolling="auto"></iframe>
We are calling this function to get the PDF rendered in the above iframe code.
function ShowPDFInIframe(obj, orderId = 0) {
var url = $(obj).attr("url");
if (url != "") {
$.ajax({
type: "POST",
url: rootPath + "/PDFController/LoadPdfInRefereceTab?documentURL=" + url,
success: function (data) {
debugger;
var iframe = $("#pdfiframe")[0];
iframe.src = data;
}
});
}
}
When we click on a PDF icon in the Microsoft Teams App, it displays a blank screen. This is a screenshot from Teams of when we open the application in a web browser.
We followed this link to implement the solution but we are still getting the same error.
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirements
Page URL
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirements
Content source URL
Author
Document Id
7037e9c7-f501-5b70-8acf-1f004a06289b
