DevExpress Report 打印提示one or more margins are set outside the printable area of the page 問題解決


 

  DevExpress  Report Print的時候,出現這樣的問題:one or more margins are set outside the printable area of the page 。

      要忽略這個提示,方法為:report.PrintingSystem.ShowMarginsWarning = false; 

但是需要注意的是,PrintingSystem在report 文檔產生后會重新生成。XtraReport.CreateDocument 方法優先級高於設置PrintingSystem的屬性。這樣處理才是正確的:

report.CreateDocument();

report.PrintingSystem.ShowMarginsWarning = false; 

或者在模板界面屬性中設置

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM