on 08-25-2021 1:41 PM
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
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.