|
-
Jul 18th, 2006, 03:44 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Problem with EnableCloseButton
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
-
Jul 18th, 2006, 03:47 AM
#2
Re: Problem with EnableCloseButton
right click on crystal report control in vb and do it from there
-
Jul 18th, 2006, 03:52 AM
#3
Thread Starter
Addicted Member
Re: Problem with EnableCloseButton
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.
-
Jul 18th, 2006, 03:55 AM
#4
Re: Problem with EnableCloseButton
what r u using crviewerr or crystal report control.......
-
Jul 18th, 2006, 03:58 AM
#5
Thread Starter
Addicted Member
Re: Problem with EnableCloseButton
-
Jul 18th, 2006, 04:21 AM
#6
Re: Problem with EnableCloseButton
EnableCloseButton =True. why during runtime it still disable
this close button contain the form that has crviewer.........
it is not the creviewer button.............
-
Jul 18th, 2006, 04:24 AM
#7
Re: Problem with EnableCloseButton
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
-
Jul 18th, 2006, 04:38 AM
#8
Thread Starter
Addicted Member
Re: Problem with EnableCloseButton
 Originally Posted by shakti5385
this close button contain the form that has crviewer.........
it is not the creviewer button.............
I dont understand with your above statement..
why i set for EnableRefreshButton and EnablePrintButton= True..They will be Enable..but for EnableCloseButton it cannot be.
-
Jul 18th, 2006, 04:49 AM
#9
Re: Problem with EnableCloseButton
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.............
-
Jul 18th, 2006, 04:59 AM
#10
Thread Starter
Addicted Member
Re: Problem with EnableCloseButton
Thanks a lot Shakti...
let me try it out
-
Jul 18th, 2006, 05:07 AM
#11
Re: Problem with EnableCloseButton
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
if u r using crystal report control then check the code.........
using this u can use crystal report in ur project
-
Jul 18th, 2006, 09:36 AM
#12
Lively Member
Re: Problem with EnableCloseButton
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.
Energy can be neither created not destroyed. It can only be wasted.
Red Green
-
Jul 18th, 2006, 10:25 PM
#13
Thread Starter
Addicted Member
Re: Problem with EnableCloseButton
Thanks Shakti and King_George
 Originally Posted by King_George
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.
I dont understand with drill-down reports..i set True for EnableDrillDown.
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
-
Jul 19th, 2006, 08:29 AM
#14
Lively Member
Re: Problem with EnableCloseButton
 Originally Posted by girl81
Thanks Shakti and King_George
I dont understand with drill-down reports..i set True for EnableDrillDown.
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.
Energy can be neither created not destroyed. It can only be wasted.
Red Green
-
Jul 20th, 2006, 04:18 AM
#15
Thread Starter
Addicted Member
Re: Problem with EnableCloseButton
Thanks a lot King_George for your explanation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|