在润乾报表设计器中完成报表开发后(完成报表公式、数据集配置),需要通过浏览器查看报表,测试树形折叠效果,可通过JSP页面,添加以下TAG标签,实现报表展现。
润乾报表设计器中,树形折叠报表配置如下:
JSP页面TAG标签配置如下:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/raqsoftInput.tld" prefix="raqsoft" %>
<%@ taglib uri="/WEB-INF/raqsoftReport.tld" prefix="report" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 处置明细分类,树形折叠报表(纵向扩展),add by 郭旭 @ 2019-04-15 -->
<title>处置明细分类</title>
</head>
<body>
<table align="center" width="100%">
<tr>
<td>
<report:html
srcType="file"
name="chargeTree"
params=""
reportFileName="处置明细分类.rpx"
funcBarLocation="top"
needScroll="yes"
scrollWidth="100%"
scrollHeight="615"
needPageMark="yes"
needSaveAsExcel="yes"
needSaveAsWord="yes"
needSaveAsPdf="yes"
needSaveAsText="yes"
funcBarFontFace="微软雅黑"
funcBarFontSize="14px"
funcBarFontColor="blank"
isTreeTable="yes"
foldOnBegin="yes"
excelLabel="导出Excel"
pdfLabel="导出Pdf"
wordLabel="导出Word"
textLabel="导出Text">
</report:html>
</td>
</tr>
</table>
</body>
</html>
报表展示效果: