Change Crystal Reports object visibility programmatically

荒凉一梦 提交于 2019-12-22 20:43:04

问题


I have a C# 2010 application which contains reports created with Crystal Reports for VS2010.

For one of the reports, there is the option to print the report or e-mail it to someone [export and send via SMTP].

I want the watermark to be shown when viewing the report and also when e-mailing it. I do not want it to be shown when it is printed since it will be printed on watermarked page.

I would like to know how I can change the watermark visibility in the form which contains the crystalReportViewer programmatically [not on runtime], so that when printing, it doesn't print the watermark too.


回答1:


  • Create a boolean parameter ({?Show Watermark})
  • Add Not({?Show Watermark}) to the conditional formula of the image or the section that contains the image
  • Set the value of the parameter programatically.


来源:https://stackoverflow.com/questions/10930894/change-crystal-reports-object-visibility-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!