Tag打印功能
属性说明
|
属性名称 |
是否必填 |
属性含义 |
属性取值 |
缺省值 |
分类 |
|||
| PrintedRaq |
否 |
被打印的报表文件名,用于打印与显示的报表不是同一张时的情况 | 报表文件名(.raq),相对于reportFileHome |
无 |
打印 |
|||
| PrintLabel |
否 |
打印Button外观定义 | html元素或文字。 |
打印 |
导出 |
|||
| NeedPrint |
否 |
需要显示打印报表的功能钮 | yes或no |
no |
导出 |
|||
用法示例
初始化设置
Aspx文件内容如下:
<%@ Register Assembly=”report35net” Namespace=”com.runqian.report.tag” TagPrefix=”report” %>
<head runat=”server”>
<title>演示报表</title>
</head>
<body topmargin=30 leftmargin=30 rightmargin=0 bottomMargin=0>
<report:HtmlTag
runat=”server”
ID=”showReport_ID”
Name=”report1″
ReportFileName=”hello1.raq”
/>
</body>
</html>
显示效果如下:

属性设置
NeedPrint、PrintLabel这两个属性在”Tag-导出”篇章介绍过,在此滤过。
PrintedRaq,该属性主要用于显示和打印不统一的情况。
Aspx文件内容如下:
<%@ Register Assembly=”report35net” Namespace=”com.runqian.report.tag” TagPrefix=”report” %>
<head runat=”server”>
<title>演示报表</title>
</head>
<body topmargin=30 leftmargin=30 rightmargin=0 bottomMargin=0>
<report:HtmlTag
runat=”server”
ID=”showReport_ID”
Name=”report1″
ReportFileName=”hello1.raq”
/>
</body>
</html>
显示效果如下:

当设置PrintedRaq=”hello.raq”的时候。
Aspx文件内容如下:
<%@ Register Assembly=”report35net” Namespace=”com.runqian.report.tag” TagPrefix=”report” %>
<head runat=”server”>
<title>演示报表</title>
</head>
<body topmargin=30 leftmargin=30 rightmargin=0 bottomMargin=0>
<report:HtmlTag
runat=”server”
ID=”showReport_ID”
Name=”report1″
ReportFileName=”hello1.raq”
PrintedRaq=”hello.raq”
/>
</body>
</html>
显示效果如下:

显示和打印的效果完全不一样,是两个raq的效果。