FineReport軟件功能簡單來說,就是通過查找各種數據庫的數據,顯示出表格來。
步驟:
一、安裝FineReport報表軟件(請網上找)
二、在目錄FineReport\WebReport\WEB-INF\reportlets,放入你設計好的.cpt報表(請網上查找FineReport教程)
三、打開FineReport服務器:FineReport\bin\server.exe
四、HTML代碼
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<!--iframe的信息改成你自己的,主要改cpt的名稱和界面信息即可-->
<iframe src="http://localhost:8079/WebReport/ReportServer?reportlet=Test.cpt" style="height:600px;width:100%;" >
</iframe>
</body>
</html>