日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Dev XtraReport 正在打印弹出框如何隐藏 批量打印 静默打印

發布時間:2025/3/15 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Dev XtraReport 正在打印弹出框如何隐藏 批量打印 静默打印 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

其實很簡單 只是在事件里去改變PrintDocument 里面的 ??PrintController ? ?下面//*******************************<<<<<<為重點代碼

?

?

private void InitializeComponent() { this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); this.detailBand1 = new DevExpress.XtraReports.UI.DetailBand(); this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // topMarginBand1 // this.topMarginBand1.HeightF = 100F; this.topMarginBand1.Name = "topMarginBand1"; // // detailBand1 // this.detailBand1.HeightF = 100F; this.detailBand1.Name = "detailBand1"; // // bottomMarginBand1 // this.bottomMarginBand1.HeightF = 100F; this.bottomMarginBand1.Name = "bottomMarginBand1"; // // FrmReport // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.topMarginBand1, this.detailBand1, this.bottomMarginBand1}); this.Version = "14.2"; this.PrintProgress += new DevExpress.XtraPrinting.PrintProgressEventHandler(this.FrmPrint_PrintProgress); this.DataSourceDemanded += new System.EventHandler<System.EventArgs>(this.FrmReport_DataSourceDemanded); this.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.FrmReport_BeforePrint);//setcomm(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit();DevExpress.XtraPrinting.PrintingSystemBase mPSB = this.PrintingSystem; mPSB.StartPrint += new PrintDocumentEventHandler(this.FrmPrint_StartPrint);//************************************<<<<<< mPSB.EndPrint += mPSB_EndPrint; }

  

?

----------------------------------------------寫事件---------------------

private void FrmPrint_StartPrint(object sender, PrintDocumentEventArgs e) {

//靜默打印 修改 e.PrintDocument.PrintController = new System.Drawing.Printing.StandardPrintController();//************************************<<<<<<


}

  

-------------------我思考了半天 網上沒有例子 我就先給出來了 如果對你有幫助 ? 望客官打賞下-------------

?

轉載于:https://www.cnblogs.com/shangdishijiao/p/10710731.html

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的Dev XtraReport 正在打印弹出框如何隐藏 批量打印 静默打印的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。