Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MaxSukholovyy
Frequent Visitor

How to embed report from Power BI Report Server

Hi

I'm trying to embed Power BI reports in our ios application. Javascript & .net api works good with the online environment, I was able to create some custome objects like reports navigation and filter pannel (somethink like power bi ios app do). But when I am tring to embed the PBIRS report with javascript api, nothing happens. It is not working. I have tried with rs:embed=true parameter and with direct api link http://localhost:13526/powerbi/?id=0db851ec-b67b-4fe7-ad99-12424e4a2949.

 

 

 var config = {
                type: 'report',
                accessToken: '-',
                //embedUrl:'http://localhost:13526/powerbi/?id=0db851ec-b67b-4fe7-ad99-12424e4a2949',                
                embedUrl:'http://localhost:13526/reports/powerbi/Dashboard?rs:embed=true',
                id: '0db851ec-b67b-4fe7-ad99-12424e4a2949',
                settings: {
                    filterPaneEnabled: false,
                    navContentPaneEnabled: false,
                    layoutType: models.LayoutType.MobilePortrait
                },
                pageName: 'ReportSection4b3fbaa7dd7908d906d9'
            };

            var reportContainer = document.getElementById('reportContainer');

            var report = powerbi.embed(reportContainer, config);

 

 

Navigating the PBIRS reports with Power BI application seems that there is a way to communicate with report via javascript api (some objects are hidden, page navigation is not standard ecc), but I can't figure out how it works.

 

Analyzing the traffic, it seems that the application tries to access to this report server page:

 

http://localhost:13526/powerbi/mobile/index.html?disableClientTelemetry=true&explore=1&clientType=winApp&hostType=ioswk&isMobileReportsEnabled=1&isOnReportServer=1

 

(I think there is used ios web kit framework)

 

Does anyone know how and if it is possible to embed PBIRS reports in external web application?

0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Kudoed Authors