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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to suppress a text field when printing a report

Status
Not open for further replies.

jc717

Programmer
Aug 1, 2001
13
US
In other words, I want to field to be visible when the report is viewed in the viewer, but I don't want to see it on a print out?

Any help is much appreciated.

JC
 
I don't think so...essentially when it is is viewed..it is being printed...but to the screen Jim
JimBroadbent@Hotmail.com
 
Hello,
The only thing i know of is that you could use it in the design tab and have it suppressed.. you would see it in the design tab but not in the preview tab. Seagate Certified RCAD Specialist.
-Bruce Thuel-Chassaigne
roadkill150@hotmail.com
 
Method 1: Suppress the text field. You can still see it in the design view, in grayed print.

Method 2: (I use this to provide documentation for my reports) Open a separate section where you want the design-view note (a report header is often a good place) and put your text box in this section. In Format Section, click the Suppress(No DrillDown) button and enter "True" as the suppress condition. The text will be displayed in black on white (or you can use colors!) but will not be printed.
 
yes...Rogar...these are fine for viewing in design mode as opposed to preview mode...but that is not the problem that was stated.

I believe that JC717 wants something to be "shown" in preview but not printed onto hard copy...I don't think that is possible. Jim
JimBroadbent@Hotmail.com
 
Ngolem is correct.
I wrote a control that uses crystal to display and print reports. I built in functionality that intercepts the mouse click event in the viewer and displays a different report (gives the illusion of drilling down on things that don't allow drilling down on)
So if the user clicks on the text box that says "Item detail" underneath some chart, a new report is displayed.
What I was looking for was a way of making the "Item Detail" text box not show up if the user actually prints the report, since it doesn't make any sense on a printed page.

I was hoping that there was a way to detect within crystal whether or not something is printing. I guess I can have a list of fields to hide within my application, and just supress them programatically before they're printed.
I was hoping that there was an easier way.

Thanks for everyone's help.

JC
 
hi,
my approach to the problem will be to create a parameter field where user will have to select view/print

on the text field i will include suppress condition upon "print" being selected.

hopes this will help :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top