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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try
If (PrintingOKConditions) then
CRViewer1.EnablePrintButto n = True
Else
CRViewer1.EnablePrintButto n = False
Endif
mlmcc
If (PrintingOKConditions) then
CRViewer1.EnablePrintButto
Else
CRViewer1.EnablePrintButto
Endif
mlmcc
When you pass parameter to generate the report from vb, please add a new parameter->HasPrintButton in your vb code and set:
HasPrintButton=false