我有一个Devexpress XtraReport,我只是不知道如何根据数据的可用性来隐藏/显示文本watermark
。我希望“数据不可用”水印只在数据不可用时才显示,如果有一些数据要显示,则动态隐藏水印。
我应该考虑XtraReport的什么属性来隐藏/显示水印?
提前感谢
发布于 2012-10-19 22:03:48
要完成此任务,请处理XRControl.BeforePrint事件并修改XtraReport.Watermark Property.
if(report.PrintingSystem.Watermark.TextTransparency == 255)
report.PrintingSystem.Watermark.TextTransparency = 0;
else
report.PrintingSystem.Watermark.TextTransparency = 255;
printBarManager1.PrintControl.Refresh();
请参考以下内容:
Hide the watermark
How to: Change the Visibility of Commands in Preview
https://stackoverflow.com/questions/12955448
复制相似问题