开发者

show fields depending if is printing or not in a report

开发者 https://www.devze.com 2023-02-02 09:25 出处:网络
I have a report that is going to be printed in a pre-formatted sheet (like an invoice). I want the user to be able to see the report as it would appear on the paper开发者_开发百科, but print only the

I have a report that is going to be printed in a pre-formatted sheet (like an invoice). I want the user to be able to see the report as it would appear on the paper开发者_开发百科, but print only the values for each field on the sheet. I know each field has a property "hide based on an expression"; but how can I distinguish between printing and on screen visualization. I am using c# and report viewer on vs 2010.


You should be able to assign the hidden field something like this "=Globals!RenderFormat.IsInteractive". Read this article for more information on rendering report layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消