对pentaho来说是新手。
我尝试在iframe中使用pentaho reportviewer显示报告,我使用 .prpt 文件加载报告。
我在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
如果我在浏览器中调用上述URL,则显示报告。我不知道上面代码中的问题。
听到我的iframe代码
<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>
结果: iframe空
Pentaho Server及其版本。
我使用pentaho BIserver4.5使用.prpt文件生成报告
提前致谢。
答案 0 :(得分:2)
这个老问题尚未得到解答,我也试图找到解决方案。
其中一个解决方案是按照建议显示报告的html版本 http://pentahoreportingandintegration.blogspot.com/2013/04/pentaho-report-integration-in-iframe.html
但我相信更好的解决方案是我的。我在博客中解释道: http://fabiantowang.blogspot.com/2013/07/embed-pentaho-report-viewer-to-web.html