找回密码
 立即注册

QQ登录

只需一步,快速开始

linanxian

注册会员

16

主题

27

帖子

99

积分

注册会员

积分
99

活字格认证

linanxian
注册会员   /  发表于:2013-9-27 17:29  /   查看:4501  /  回复:3
//
            // detail
            //
            this.detail.Height = 0.2520833F;
            this.detail.Name = "detail";
            this.detail.Format += new System.EventHandler(this.detail_Format);
            this.detail.BeforePrint += new System.EventHandler(this.detail_BeforePrint);
            //
            // pageHeader
            //
            this.pageHeader.Controls.AddRange(new GrapeCity.ActiveReports.SectionReportModel.ARControl[] {
            this.label1,
            this.label2,
            this.label3,
            this.label4,
            this.label5,
            this.label6,
            this.label7});
            this.pageHeader.Height = 1.89625F;
            this.pageHeader.Name = "pageHeader";
            this.pageHeader.Format += new System.EventHandler(this.detail_Format);

3 个回复

倒序浏览
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-9-27 17:41:00
沙发
什么意思,没看明白,Pageheader的Format事件可以直接双节PageHeader进行创建。
回复 使用道具 举报
linanxian
注册会员   /  发表于:2013-9-27 18:15:00
板凳
this.detail.Format += new System.EventHandler(this.detail_Format);
this.pageHeader.Format += new System.EventHandler(this.detail_Format);   

要是双击pageHeader部分,就到detail_Format()方法里
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-9-29 11:59:00
地板
选中pageHeader,然后在事件窗口中的Format指定事件处理函数

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部