DevExpress报表打印设计

本文介绍了DevExpress报表设计的关键代码和实现步骤。通过DesignReportForm集成DesignReportControl、DesignToolBar和DesignFormattingToolBar来设计报表,并利用DataSet的Schema文件创建报表格式。ReportUtil.DesignReport方法用于设计已存在的报表文件。
摘要由CSDN通过智能技术生成

这个章节内容详细说明DevExpress开发教程之报表打印设计实现篇中的关键代码部分、简单的设计和打印应用。

 1、DevExpress中 可以通过report.RunDesignerDialog或者report.RunDesigner来设计报表,这里没有使用这两个方法来实现报表设计 功能,而是使用第一章中的自定义的DesignReportForm来实现(实际上相同,但自定义可以控制其他如根据权限显示等内容)。

 2、DesignReportForm非常简单,就是把DesignReportControl,DesignToolBar和 DesignFormattingToolBar拼凑在一起,它们共同关联designReportControl1.DesignPanel。

 3、现在设计一个简单的DataSet,内容如下:

DataSet ds = new DataSet("DeliveryDataSet");
            DataTable dtDelivery= new DataTable("Delivery");
            {
                dtDelivery.Columns.Add("BillId", typeof(string));
                dtDelivery.Columns.Add("ManualId", typeof(string));
                dtDelivery.Columns.Add("BillDate", typeof(DateTime));
                dtDelivery.Columns.Add("CustomerId", typeof(string));
                dtDelivery.Columns.Add("WarehouseId", typeof(string));
                dtDeliv
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值