CSharp_DevExpress_XtraReport简单实现;
来源:互联网 发布:淘宝网开店流程图 编辑:程序博客网 时间:2024/05/16 12:03
->效果
->源码
SimpleReport.cs类
using System.Drawing;using DevExpress.XtraReports.UI;namespace HelloWorld{ public class SimpleReport : XtraReport { private DetailBand Detail; private PageHeaderBand PageHeader; private PageFooterBand PageFooter; // label private XRLabel HelloWorldLabel; public SimpleReport() { // 创建带区 this.Detail = new DetailBand(); this.PageHeader = new PageHeaderBand(); this.PageFooter = new PageFooterBand(); this.PageFooter.Height = 30; this.PageHeader.Height = 30; // 添加带区 this.Bands.AddRange(new Band[] { this.Detail, this.PageHeader, this.PageFooter }); // 标签声明 this.HelloWorldLabel = new XRLabel(); this.HelloWorldLabel.Text = "Hello, World!"; this.HelloWorldLabel.Font = new Font("Tahoma", 15, FontStyle.Bold); // 添加标签 this.Detail.Controls.Add(this.HelloWorldLabel); } }}
// 调用
// 调用
private void button_Click(object sender, EventArgs e) {
// 报表实例
SimpleReport report = new SimpleReport();
// 打印预览
report.ShowPreviewDialog();
// 打印弹出框
report.PrintDialog();
}
0 0
- CSharp_DevExpress_XtraReport简单实现;
- 杀毒软件的简单实现的简单实现
- 杀毒软件的简单实现
- AXIS简单实现入门
- 俄罗斯方块的简单实现
- 简单文件系统的实现
- GinaBackDoor简单实现
- 杀毒软件的简单实现
- 杀毒软件的简单实现
- 实现简单有限状态机
- 实现简单下载代码
- 简单实现全屏对话框
- 迷宫程序简单实现
- 简单HTTP服务器实现
- strstr()的简单实现
- printf 的简单实现
- URL编码简单实现
- frame简单实现导航
- Afinal Android快速开发框架
- 本地存储替代cookie:qext.LocalStorage
- cocos2d-x游戏开发 跑酷(九) 源码下载及小结
- 数据结构_线性表
- jsp中jsp:forward 与 redirect区别
- CSharp_DevExpress_XtraReport简单实现;
- 如何用word 2013 自动生成目录
- HibernateDaoSupport和HibernateTemplate
- iOS 平台开发应用并发布到 App Store 流程
- 注册表中%1与%*对批处理参数传递的影响
- 与Apollo有关的MediaProvider
- 3.3 跨越进程边界共享内核对象
- TEXT、TINYTEXT、MEDIUMTEXT、LONGTEXT选择
- C++ 底层做的事情