Pentaho reportviewer URL not loading in iframe

拥有回忆 提交于 2020-01-21 14:36:28

问题


Am new to pentaho.

I try to display the report using pentaho reportviewer in iframe i use .prpt file to load the report.

I used the following url in iframe

http://172.20.10.30:8080/pentaho/content/reporting/reportviewer/report.html?solution=steel-wheels&path=%2Freports&name=Inventory.prpt&userid=joe&password=password

If i invoke the above URL in the browser it display the report. I don't know the problem in the above code.

Hear is my Iframe code

<html>
        <head>
            <title>Sensatron Issue Testing</title>
        </head>
        <body>
            <p><strong></strong><b> Sensatron Issue Testing.</b></p>
            <iframe width="1300px" height="750px" src="http://172.20.10.30:8080/pentaho/content/reporting/reportviewer/report.html?solution=steel-wheels&path=%2Freports&name=Inventory.prpt&userid=joe&password=password" name="Bharat" >
            </iframe><br>
        <br>
    </body>
</html>

Result: iframe empty

Pentaho Server and its version.

I use pentaho BIserver4.5 to generate report using .prpt file

Thanks in advance.


回答1:


This old question hasn't been answered yet and I also tried to find a solution.

One of solution is show html version of report as suggested in http://pentahoreportingandintegration.blogspot.com/2013/04/pentaho-report-integration-in-iframe.html

But I believe the better solution is mine. I explained in my blog: http://fabiantowang.blogspot.com/2013/07/embed-pentaho-report-viewer-to-web.html



来源:https://stackoverflow.com/questions/13758578/pentaho-reportviewer-url-not-loading-in-iframe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!