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>

    展示效果如下:

      .net报表工具教程
    .net报表系统知识库

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值