hi everybody..
i have a problem during set EnableCloseButton in CR 8.5.
I set EnableCloseButton =True. why during runtime it still disable.
Thanks in advance
Printable View
hi everybody..
i have a problem during set EnableCloseButton in CR 8.5.
I set EnableCloseButton =True. why during runtime it still disable.
Thanks in advance
right click on crystal report control in vb and do it from there
tq Shakti
i set already at CRViewer1 Properties .I set it to True.The icon X will be displayed on the top of the report.But that icon is disabled.
what r u using crviewerr or crystal report control.......
CRViewer
this close button contain the form that has crviewer.........Quote:
EnableCloseButton =True. why during runtime it still disable
it is not the creviewer button.............
generally crviewr is not so batter.......
i always use crystal report control for showing crystal report.......
by the way want u want to enabled the close button
I dont understand with your above statement..Quote:
Originally Posted by shakti5385
why i set for EnableRefreshButton and EnablePrintButton= True..They will be Enable..but for EnableCloseButton it cannot be.
Ya u are telling true i also work with it but it is always false
this problem also happen with me...........
what i do i use crystal report control........
By the way crviewer control is on a form that is form1
so u can use a command button for closing it,........ and make it visible false if there is no data for report.............
Thanks a lot Shakti...
let me try it out
if u r using crystal report control then check the code.........VB Code:
With CrystalReport1 .ReportFileName = App.Path & "\CryReport\Salary_Slip.rpt" .ReplaceSelectionFormula "{Leave_table.fIRM}='" & CFIRM.Text & "' AND {leave_table.year}=" & Year(DTPicker1.Value) & " AND {LEAVE_TABLE.MONTH}='" & MonthName(DTPicker1.Month) & "'" .Action = 1 End With
using this u can use crystal report in ur project
The enableclose property is only to be used if you have drill-down reports. The button on the report will only activate if there are drill-down reports and will only close those, not the report itself.
To close the report, you have to use the "X" on the report or close the form it resides on.
Thanks Shakti and King_George
I dont understand with drill-down reports..i set True for EnableDrillDown.Quote:
Originally Posted by King_George
Actually i used a MDI Menu for VB 6.0.I want to set ControlBox(Minimized,Maximized,Close)=False.
So that user just can close the report using the icon(X) on the report..I mean Close Current View.
So there is a way how to do this..
Thanks in advance
Short answer...no. That is not possible. You cannot close the form with the X on the report, that's only if you are using drill-down reports. If it is grayed out, then obviously you aren't. Again that X only closes drill-down reports. The EnableDrillDown only works when there actually ARE drill down reports.Quote:
Originally Posted by girl81
Thanks a lot King_George for your explanation. :)