Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I am trying to export power bi embedded report to PDF, but no luck. I am calling the below JQuery code from Sharepoint 2013.
Any help is appreciated.
$.ajax({
url: "https://api.powerbi.com/v1.0/myorg/groups/'" + groupId + "'/reports/'" + reportId + "'/exports/'" + exportId + "'/file"
,type: "GET",
dataType: "json",
headers: {
"Accept": "application/json;odata=verbose",
"Content-Type": "application/json;odata=verbose",
"Authorization": "Bearer'" + EmbedToken + "'"
}
}).done(function (data) {
// If successful
console.log(data);
}).fail(function (jqXHR, textStatus, errorThrown) {
// If fail
console.log("Export failed :" + errorThrown);
});
@AJose ,
refer
https://community.powerbi.com/t5/Developer/Print-in-powerBI-embedded/td-p/92635
https://stackoverflow.com/questions/55052150/how-to-generate-pdf-output-of-powerbi-embedded-report
@AJose - Are you getting a specific error?
Hi,
Let me explain the issue in detail. I have a Web API with the code in the below URL which is called form the SharePoint 2013 page using JQuery . I am getting the error - "Netwok error"
"https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to"
I also tried a second approach by calling the Web API to get the export ID and use the JQuery code in my first post to get the PDF file . I could get the exportId from the Web API but the export to PDF is failing with a blank error.
Hope this explanation helps.
Hi @AJose ,
Since it is preview, there seems to be an unknown problem with the functions that have not yet been officially launched. I suggest try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
Best Regards,
Dedmon Dai
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |