报表控件FineReport中报表如何嵌入到.net系统

时间:2026-02-15 08:39:59

1、情形一:报表整体嵌入在.net系统框架中

如下图,点击左侧报表节点,将报表整体显示在.net系统的MainFrame主框架中:

报表控件FineReport中报表如何嵌入到.net系统

2、图中“地区销售表”对应一个超级链接元素<a>,我们只需要设置其href为报表路径,目标打开位置target为框架名称MainFrame即可:

<a href="http://localhost:8080/WebReport/ReportServer?reportlet=GettingStarted.cpt" target="MainFrame">地区销售表</a>

另外还可以给报表传递动态参数值,类似如下:

<a href="http://localhost:8080/WebReport/ReportServer?reportlet=GettingStarted.cpt&参数名=<%=参数值%>" target="MainFrame">地区销售表</a>

3、情形二:报表嵌入在.net系统的某个页面中

若上图中间区域主框架中嵌入的是某个.net页面,如xxx.asp,在该页面中再嵌入报表。此时在该asp页面body中通过iframe来嵌入报表:

<iframe id="reportFrame" src="http://localhost:8080/WebReport/ReportServer?reportlet=GettingStarted.cpt" width = "100%" height = "500px"></iframe>

© 2026 海能知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com