public partial class Report_Code : XtraReport
{
public Report_Code()
{
InitializeComponent();
this.PrintingSystem.StartPrint += PrintingSystem_StartPrint;
}

private void PrintingSystem_StartPrint(object sender, DevExpress.XtraPrinting.PrintDocumentEventArgs e)
{
// 取消打印状态窗口
e.PrintDocument.PrintController = new System.Drawing.Printing.StandardPrintController();
}

这样可以避免在设计代码里添加

https://www.cnblogs.com/shangdishijiao/p/10710731.html

posted on 2022-08-24 10:27  小石头的一天  阅读(201)  评论(0编辑  收藏  举报