Make a field optionally print out?

rudeboymcc

Registered User.
Local time
Today, 14:30
Joined
Sep 9, 2008
Messages
69
Hi. I've got a report with a comments field. I want this to print out if the user wants it to, but otherwise hide it (i don't want the client to see the comments).

At the moment it's set to display on screen only. Is there a way i can add a button that changes it to print only, prints the report, and then changes it back to screen only?
 
You can probably use the "Openargs" of the OpenReport command (or print command) to pass information to the report. Then inside the report change the value of screen/print, I think... probably... not 100% sure though
 
found another way round it, i didn't realise you could put active objects in reports, so i added a tick box next to the comments field and made it's even on click:

comments.displaywhen = 0

(displaywhen: 0 = always, 1 = print only, 2 = screen only).

sorted!
 

Users who are viewing this thread

Back
Top Bottom