如何仅在打印时显示文本,而不是在水晶报表中预览时显示文本 [英] How to show text only while printing and not while preview in crystal reports

查看:89
本文介绍了如何仅在打印时显示文本,而不是在水晶报表中预览时显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





使用可供Visual Studio 2017下载的Crystal Report Developer版本。



我的报告上有一个文本框,里面有一个页脚文本。我想打印出来但不要在预览时在屏幕上显示。



如何捕获打印状态?或者还有其他出路吗?



请帮忙。提前致谢。



我的尝试:



尝试使用文本框的公式部分中的

Hi,

Using the Crystal Report Developer Version that was available for Visual Studio 2017 as a download.

Got a textbox on my report with a footer text in it. I want to print it out but not to show on the screen while previewing.

How to capture the print state ? Or is there any other way out ?

Please help. Thanks in advance.

What I have tried:

Tried using the

WhilePrintingRecords;

假设文本仅在打印时显示,但在预览和打印时都显示。

in the formula section of the textbox assuming the text will show only while printing but it shows both in preview and print.

推荐答案

这需要两个报告(或至少一组parms)...一个人只能预览一个打算打印的内容(即使一个没有)。 br />


您仍需要逻辑来生成非预览预览。



在我的预览中,我通过将相关控件设置为不可见来删除预览模式中的项目。
That requires "two" reports (or at least a set of "parms") ... One can only "preview" what one "intends" to print (even though one didn't).

You still need "logic" to generate the "non-previewing" preview.

In my previews, I remove items in "preview mode" by setting the control in question to "not visible".


这篇关于如何仅在打印时显示文本,而不是在水晶报表中预览时显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆