动态报表系统FineReport如何设置自定义提交按钮

 时间:2026-04-24 14:44:14

1、使用模板%FR_HOME%\WebReport\WEB-INF\reportlets\doc\Form\FreeFrom\FreeForm.cpt

在网页中添加按钮代码如下:

<button type="button" onclick="document.getElementById('reportFrame').contentWindow.contentPane.writeReport()">提交</button>

2、完整代码:

<html>     

<head>     

<title>自定义浏览页面</title>     

</head>     

<body>     

<div id="toolbar">     

<button type="button" onclick="document.getElementById('reportFrame').contentWindow.contentPane.writeReport()">提交</button>

</div>     

<iframe id="reportFrame" onload="afterload()" src="/WebReport/ReportServer?reportlet=doc\Form\FreeFrom\FreeForm.cpt&__showtoolbar__=false" width = 100% height = 80%></iframe>     

</body>     

</html> 

3、效果如下图:

动态报表系统FineReport如何设置自定义提交按钮

  • UltraEdit列模式怎么对列求和
  • oracle 导入excel文件
  • 在Oracle数据库中如何实现字符串的连接操作
  • UltraEdit怎么设置正则表达式
  • 怎样使用VBA符合三个条件则汇总数据?
  • 热门搜索
    地面砖什么样的好 不毛之地什么意思 本垒打什么意思 做春梦有什么预兆 administrator是什么意思 赴汤蹈火的意思 蹒跚的意思 感性是什么意思 普洱茶的作用 什么是多头