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

Enable Close Button on CRViewer

Status
Not open for further replies.

lovevthokie

Programmer
Oct 16, 2001
19
US
I am using CR 8.5 with VB 6 using the RDC method. I have a frmPreview that holds the CRViewer on it and I pass the previously designed .rpt files to this form. My question is the "X" button or known as the Close Button. I have a property to EnableCloseButton. I set it to True, but it is still greyed out on the form in design mode and runtime. I tried setting it to true when the form is loaded as well, & still it is greyed out in both modes. When I say False, it just completely disappears. Am I missing something?

Thanks in advance!
Deborah
 
I'm doing the same kind of thing with the RDC control. (Except I went a bit further and I'm putting the control into a DLL project.) The EnableCloseButton property is only for showing or hiding the button on the Crystal toolbar. So, it's doing what it's supposed to do when you set this to false. The button will be greyed out when the main report is showing in the preview tab. On the RDC, set the EnableDrillDown=True and DisplayTabs=True. Load a sample crystal report. You should be able to drill on a graph or something by double clicking. When you do, a new "View" will show up as a new tab. The close button will be active only for the new View and not the main report View.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top