• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

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.
0
edlkooi
Asked:
edlkooi
  • 2
1 Solution
 
mlmccCommented:
Try

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

mlmcc
   
0
 
Phoebe_YiCommented:
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
0
 
mlmccCommented:
Try

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

mlmcc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now