您的位置:首页 > 知识库 > 设计基础 > 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>

    展示效果如下:

浏览次数:0 ; 发布日期:2009/09/15

热门文章

  • 申请试用授权 - 41,970 views
  • 使用入门教程简介 - 26,358 views
  • .NET报表产品概况 - 23,747 views
  • 联系我们 - 11,321 views
  • 技术支持 - 8,479 views
  • 高效报表设计 - 7,579 views
  • Web报表工具的新起点 - 6,419 views
  • 复杂报表的制作 - 5,937 views
  • Web报表软件的采购成本 - 5,476 views
  • Web报表软件的集成方案 - 4,220 views