Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display a textbox but don't allow it to print

Status
Not open for further replies.

azaveri

IS-IT--Management
Mar 25, 2010
14
US
Hello all,

Is there a way to display a textbox on a report, but prevent it from printing?

For example, when the report is generated, the textbox would give a brief description of the report; but when the user goes to print the report, that textbox would be left off the printout.

Thanks for your help.

Anooj
 
There is no way to do this in Crystal - what you see on the screen is what will print on the report.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
You could add a parameter asking whether the user intends to print and then conditionally suppress the section containing the text box based on his/her response.

-LB
 
That's a good idea; but the answer will always be "no" since the textbox only displays the description of the report and doesn't need to be printed. The flipside is then they won't be able to see the textbox at all when they run the report. I wonder if this has ever come up before...
 
The answer to whether they are planning to print the report will only sometimes be "no". If they say "no", they can see the box; if "yes", they can't and the report will be printed without it. Not ideal, but does the trick. You could also suppress the box outright, and instruct the user to look in design mode to see a report description, since it will still be readable there. I often just add instructions to a report description on how to right click on the area to the left of the report header to suppress the description if they so wish.

-LB
 
I must have been unclear. Users don't have Crystal Reports on their computers. They're accessing the reports through our software using the Crystal Reports Viewer. So they won't have access to Design / Preview modes. Thanks.
 
The only solution I can see is a customised report viewer that traps the print event and modifies a formula prior to invoking the printing. SUe that formula for contintional suppress of the fields/objects you don't want to see.

I have had this request before, and that was the solution I was looking at developing. The client ended up changing their report instead.

Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top