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