Link to home
Start Free TrialLog in
Avatar of edlkooi
edlkooi

asked on

re: supressing printer icon on Crystal Report ( called from VB6)

Hi, I am trying to allow printing icon to show up only under certain conditions(i.e. certain user id only) for my VB6 program.

Is there any property in the crystal report control that I can set to disable printing from the crystal report generated ?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Phoebe_Yi
Phoebe_Yi

Please try:

When you pass parameter to generate the report from vb, please add a new parameter->HasPrintButton in your vb code and set:
HasPrintButton=false
Try

If (PrintingOKConditions) then
  CRViewer1.EnablePrintButton = True
Else
  CRViewer1.EnablePrintButton = False
Endif

mlmcc