导出,打印和保存本地日志文件 - 打印
来源:互联网 发布:淘宝追加评论怎么写 编辑:程序博客网 时间:2024/06/14 06:18
using System;using System.Collections.Generic;using System.Linq;using System.Text;using DevExpress.XtraPrinting;using DevExpress.XtraGrid;using DevExpress.XtraEditors;using System.Windows.Forms;namespace CYYFCheckupMgr.OccupationalDisease.UC.UC.Query{ /// <summary> /// PrintUtil /// author CYTD Young /// 2016-05-06 15:28:52 /// music: Neil Young - Peace Trail /// </summary> public static class PrintUtil { public static void GridControlPrint(GridControl gridControl) { if (ComponentPrinter.IsPrintingAvailable(false)) { PrintingSystem ps = new PrintingSystem(); PrintableComponentLink link = new PrintableComponentLink(ps); link.Component = gridControl; link.Landscape = true; PageHeaderFooter phf = link.PageHeaderFooter as PageHeaderFooter; phf.Header.Content.Clear(); phf.Header.Font = new System.Drawing.Font("宋体", 16, System.Drawing.FontStyle.Regular); phf.Header.LineAlignment = BrickAlignment.Center; phf.Footer.Content.Clear(); phf.Footer.Content.AddRange(new string[] { "", String.Format("打印时间: {0:g}", DateTime.Now), "" }); link.CreateDocument(); link.ShowPreview(); } else { XtraMessageBox.Show("打印机不可用...", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }}
0 0
- 导出,打印和保存本地日志文件 - 打印
- 导出,打印和保存本地日志文件 - 导出GridControl
- 打印log日志,保存在本地
- java 存储文件和打印错误日志
- 导出Excel和打印
- QT-窗口打印debug信息,本地日志保存,以及执行shell脚本并且把信息打印在窗口
- smartforms 打印转成保存在本地pdf
- 网页中添加打印导出保存
- 打印日志信息到文件
- C++打印日志输出文件
- C++ 打印输出日志文件
- unity打印日志到文件
- android 错误日志打印到本地
- android 错误日志打印到本地
- android日志打印库,可以配置打印到本地,可以配置打印格式化的日志
- Bartender打印和导出图片
- 日志打印到屏幕同时保存到文件及获取管道返回状态
- 日志打印到屏幕同时保存到文件及获取管道返回状态
- java如何跳出当前的多重嵌套循环
- 导出,打印和保存本地日志文件 - 导出GridControl
- 互联网公司测试组长/leader/经理如何面试社招测试工程师
- Gradle总结
- Spring-boot 文件上传
- 导出,打印和保存本地日志文件 - 打印
- 百度软件测试工程师笔试和面试完整经历
- Filter Manager and Minifilter Driver Architecture
- 判断当前ImageView设置的是哪张图片
- 虚幻4 渲染一个BOX的过程
- iconfont字体图标的使用
- 11g 单机 asm
- 深度解析CyclicBarrier源码
- Caffe学习笔记(一):Caffe架构及其模型解析