首页 > 其他 > 详细

水晶报表的属性和方法

时间:2014-03-03 12:28:03      阅读:337      评论:0      收藏:0      [点我收藏+]

属性:

CrystalReportViewer1.HasToggleGroupTreeButton = false;//显示或隐藏工具栏上组树按钮

CrystalReportViewer1.ToolPanelView = None;//同过时的DisplayGroupTree一样
CrystalReportViewer1.HasExportButton = true;//显示或隐藏工具栏上导出按钮
CrystalReportViewer1.HasPrintButton = true;//显示或隐藏工具栏上打印按钮
//CrystalReportViewer1.HasViewList = true;//显示或隐藏工具栏上视图列表(主报表)过时
CrystalReportViewer1.HasDrillUpButton = true;//获取或设置浅化按钮可见性(向上)
CrystalReportViewer1.HasPageNavigationButtons = true;//显示或隐藏工具栏上导航按钮
CrystalReportViewer1.HasGotoPageButton = true;//显示或隐藏工具栏上跳转按钮
CrystalReportViewer1.HasSearchButton = true;//显示或隐藏工具栏上搜索按钮
CrystalReportViewer1.HasZoomFactorList = true;//显示或隐藏工具栏上缩放按钮
CrystalReportViewer1.HasCrystalLogo = true;//显示或隐藏工具栏上LOGO
CrystalReportViewer1.SelectionFormula = "{Customer.Last Year‘s Sales} > 11000.00 " + "AND Mid({Customer.Customer Name}, 1, 1) = \"A\"";//筛选公式

CrystalReportViewer1.DisplayToolbar = true;//显示或隐藏工具栏
// CrystalReportViewer1.DisplayGroupTree = true;//显示或隐藏组树但过时了
CrystalReportViewer1.DisplayPage = true;//显示或隐藏页面视图
CrystalReportViewer1.SeparatePages = true;//获取或设置报表页是分开还是连接?
CrystalReportViewer1.BorderWidth = Convert.ToInt32("borderWidth");//设置边框宽度

方法:

CrystalReportViewer1.ShowNthPage(Convert.ToInt32("pageNumber"));//跳转页
CrystalReportViewer1.Zoom(Convert.ToInt32("zoomFactor"));//缩放

水晶报表的属性和方法,布布扣,bubuko.com

水晶报表的属性和方法

原文:http://www.cnblogs.com/wnp0511/p/3576778.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!