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;
或者在模板界面屬性中設置