我以格式html为get birt报告设置下一个代码并将其显示在框架上:
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" language="java" errorPage="error.jsp"%>
<%@ taglib uri="/birt.tld" prefix="birt" %>
<html>
<head>
<title>Seguimiento</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' type='text/css' href='../js/jquery-1.7.2/css/custom-theme/jquery-ui-1.7.2.custom.css' />
<script type='text/javascript' src='../js/jquery-1.7.2/js/jquery-1.3.2.min.js'></script>
<script type='text/javascript' src='../js/jquery-1.7.2/js/jquery-ui-1.7.2.custom.min.js'></script>
</head>
<body>
<p>Show report</p>
<birt:viewer id="birtViewer" reportDesign="localhost:9080/WebViewerExample/demo_reporte.rptdesign"
pattern="frameset"
height="450"
width="700"
format="html"
></birt:viewer>
</body>
</html>
但我收到此错误:
Estado HTTP 404 - / proyect / frameset
输入Informe de estado
mensaje / proyect / frameset
注意:如果我直接从Birt运行报告,则查看器运行完美。
答案 0 :(得分:0)
iframe可以像这样工作
<iframe name="birtReport" src="http://localhost:9080/WebViewerExample/run?__report=demo_reporte.rptdesign&__format=html" width="700" height="450"/>