DevExpress 实时打印表格内容(PrintableComponentLink/CompositeLink组件使用)
作者:C/S框架网|www.csframewo 发布日期:2023/02/25 17:43:49
DevExpress 实时打印表格内容(PrintableComponentLink/CompositeLink组件使用)源码:
C# Code:
//实例化打印组件
PrintableComponentLink link = new PrintableComponentLink();
CompositeLink compositeLink = new CompositeLink(new PrintingSystem());
link.Component = gc;//GridControl组件
link.Landscape = true;
link.PaperKind = System.Drawing.Printing.PaperKind.A4;
link.CreateMarginalHeaderArea += Link_CreateMarginalHeaderArea;
compositeLink.Links.Add(link);
//显示打印预览界面
compositeLink.ShowRibbonPreview(DevExpress.LookAndFeel.UserLookAndFeel.Default);
//来源:C/S框架网 | www.csframework.com | QQ:23404761
扫一扫加作者微信