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; 

或者在模板界面属性中设置

 

 

posted on 2017-10-12 15:01  Old-Fish  阅读(2013)  评论(0编辑  收藏  举报