Forum Discussion

Haderach's avatar
Haderach
Frequent Visitor
8 years ago
Solved

Problem embeding report in TWebBrowser (IE9)

Hello,

 

We are developping an application in Delphi Tokyo 10.2 in which we are embeding powerBI reports in a TWebBrowser component.

This component is using IE 9 engine.

 

Everything was working fine severals weeks ago.

 

Now we have problem on postMessage on URL like this : https://app.powerbi.com/reportEmbed?reportId=.........

 

Our process is to load this URL (ie : https://app.powerbi.com/reportEmbed?reportId=5cacc672-0a61-4972-92bf-5373ac9386d8) in the TWebBrowser and on DocumentComplete event, we execute javascript postMessage(message, '*') with message build in JSON with action : loadReport and accessToken : the generated access token with the right client ID and azure tenant ID.

 

Why it is nor working anymore in IE 9 ?

It is still working manually in IE10, 11, Edge, Firefox and Chrome but our TWebBrowser component only works with IE9.

 

Can you please help us with this problem?

Any solution to embed powerBI report in a Delphi application?

 

Sincerely

  • Thank you for you reply.

     

    I have tried to change the registry key but it does not work.

    It is an incompatibility between powerBi javascript code and TWebbrowser.

     

    The only way we have found to solve this problem is to change the TWebBrowser component by a TChromium component available here : https://github.com/salvadordf/CEF4Delphi

     

     

4 Replies