cancel
Showing results for 
Search instead for 
Did you mean: 

Print Conditionally

former_member731159
Participant
0 Kudos

Hello,

Does anyone know of a strategy that will allow a report to show all data (on a computer), but hide certain data when printing to paper, pdf, etc.?

I'm looking for a way to conditionally suppress certain data when printing, but shows everything wen viewing the data on a computer.

Thanks,

Paul

Accepted Solutions (1)

Accepted Solutions (1)

ido_millet
Active Contributor
0 Kudos

Yes, the application needs to control the logic.

WhilePrintingRecords; refers to "report passes" (an internal sequence of steps Crystal takes when getting the data, sorting, etc. It has nothing to do with the actual printing.
There is no way of doing what you are asking with regular Crystal formula logic (except for running the report again with a different parameter value or printing a different version of the report).

Answers (3)

Answers (3)

ido_millet
Active Contributor
0 Kudos

Here is a video demo showing how this works.

If you wish to implement a similar feature in your report viewer application, the key idea is to toggle a formula value when entering print mode.

ido_millet
Active Contributor
0 Kudos

Paul, this seems like a useful feature, so I implemented a proof of concept in my Crystal Reports viewer using RAS functionality. Looks good.
I'll post a video demo and an explanation when done.

ido_millet
Active Contributor
0 Kudos

You would need to create a report viewer application to customize the printing logic.

Or simply ask the user to run the report with a parameter controlling the purpose of the report preview. For printing or for viewing.

former_member731159
Participant
0 Kudos

What is a report viewer application?

This report is rendered through a custom application. Are you saying that the application would need to control this logic; and if so, how?

Also, "WhilePrintingRecords;" refers to data rendering on the screen or printing to a page. Is there a statement that can hide data when printing to a page?

Thanks...