Tag功能Bar
Tag功能Bar
属性说明
| 属性名称 |
是否必填 |
属性含义 |
属性取值 |
缺省值 |
分类 |
| FuncBarLocation |
否 |
功能条的位置 | top, bottom, both |
top |
功能条 |
| Separator |
否 |
各功能钮间的分隔符 | html元素或文字 |
空格 |
功能条 |
| FuncBarFontFace |
否 |
功能条的字体 | 字体名称 |
宋体 |
功能条 |
| FuncBarFontSize |
否 |
功能条的字体大小 | 与html文件中定义字体大小相同,比如:12px |
13px |
功能条 |
| FuncBarFontColor |
否 |
功能条的字体颜色 | 功能条的字体颜色。html文件中使用的颜色比如:red,#334455 |
black |
功能条 |
| FunctionBarColor |
否 |
功能条背景色 | html文件中使用的颜色比如:yellow,#AA2222 |
无颜色 |
功能条 |
| UserFuncBarElements |
否 |
用户自定义的功能条中的功能元素 | Html元素,可多个或多层组合,如<table><tr><td><a href=”…”>xxx</a> </td></tr></table> |
无颜色 |
功能条 |
用法示例
1 初始化设置
Aspx文件如下:
<%@ Register Assembly=”report35net” Namespace=”com.runqian.report.tag” TagPrefix=”report” %>
<head runat=”server”>
<title>演示报表</title>
</head>
<body topmargin=0 leftmargin=0 rightmargin=0 bottomMargin=0>
<report:HtmlTag
runat=”server”
ID=”showReport_ID”
Name=”report1″
ReportFileName=”hello.raq”
/>
</body>
</html>
展示效果如下:

2 设置功能条属性
-
FuncBarLocation
Aspx文件如下:
<%@ Register Assembly=”report35net” Namespace=”com.runqian.report.tag” TagPrefix=”report” %>
<head runat=”server”>
<title>演示报表</title>
</head>
<body topmargin=0 leftmargin=0 rightmargin=0 bottomMargin=0>
<report:HtmlTag
runat=”server”
ID=”showReport_ID”
Name=”report1″
ReportFileName=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=””
/>
</body>
</html>
FuncBarLocation=”” 等价于 FuncBarLocation=”top”
展示效果如下:

Aspx文件如下:
<%@ Register Assembly=”report35net” Namespace=”com.runqian.report.tag” TagPrefix=”report” %>
<head runat=”server”>
<title>演示报表</title>
</head>
<body topmargin=0 leftmargin=0 rightmargin=0 bottomMargin=0>
<report:HtmlTag
runat=”server”
ID=”showReport_ID”
Name=”report1″
ReportFileName=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”bottom”
/>
</body>
</html>
展示效果如下:

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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
/>
</body>
</html>
展示效果如下:

-
FuncBarFontFace
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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
/>
</body>
</html>
展示效果如下:

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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”黑体”
/>
</body>
</html>
展示效果如下:

-
FuncBarFontSize
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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
FuncBarFontSize=”12px”
/>
</body>
</html>
展示效果如下:

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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
FuncBarFontSize=”24px”
/>
</body>
</html>
展示效果如下:

-
FuncBarFontColor
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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
FuncBarFontSize=”12px”
FuncBarFontColor=”blue”
/>
</body>
</html>
展示效果如下

-
FunctionBarColor
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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
FuncBarFontSize=”12px”
FuncBarFontColor=”blue”
FunctionBarColor=”yellow”
/>
</body>
</html>
展示效果如下:

-
Separator
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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
FuncBarFontSize=”12px”
FuncBarFontColor=”blue”
FunctionBarColor=”yellow”
Separator=”&”
/>
</body>
</html>
展示效果如下:

-
UserFuncBarElements
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=”hello.raq”
NeedSaveAsExcel=”yes”
NeedSaveAsPdf=”yes”
NeedPrint=”yes”
FuncBarLocation=”both”
FuncBarFontFace=”宋体”
FuncBarFontSize=”12px”
FuncBarFontColor=”blue”
FunctionBarColor=”yellow”
Separator=”&”
UserFuncBarElements=”<INPUT TYPE=’button’ VALUE=’用户自定义的按钮” ONCLICK=”><a href=’http://www.bonzerreport.com/’>我要去博计</a>”
/>
</body>
</html>
展示效果如下:
