显示字段取决于报告中是否正在打印

发布于 2024-10-10 08:40:56 字数 129 浏览 0 评论 0原文

我有一份报告将打印在预先格式化的表格中(如发票)。我希望用户能够看到出现在纸张上的报告,但仅打印工作表上每个字段的值。我知道每个字段都有一个属性“基于表达式隐藏”;但我如何区分打印和屏幕可视化。我在 vs 2010 上使用 c# 和报告查看器。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

日久见人心 2024-10-17 08:40:56

您应该能够为隐藏字段分配类似“=Globals!RenderFormat.IsInteractive”的内容。阅读此文章了解有关呈现报表布局的更多信息。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文