Results 1 to 15 of 15

Thread: [RESOLVED] Problem with EnableCloseButton

  1. #1

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Resolved [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

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: Problem with EnableCloseButton

    right click on crystal report control in vb and do it from there

  3. #3

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    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.

  4. #4
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: Problem with EnableCloseButton

    what r u using crviewerr or crystal report control.......

  5. #5

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Re: Problem with EnableCloseButton

    CRViewer

  6. #6
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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.............

  7. #7
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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

  8. #8

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Re: Problem with EnableCloseButton

    Quote 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.

  9. #9
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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.............

  10. #10

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Re: Problem with EnableCloseButton

    Thanks a lot Shakti...

    let me try it out

  11. #11
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: Problem with EnableCloseButton

    VB Code:
    1. With CrystalReport1
    2.     .ReportFileName = App.Path & "\CryReport\Salary_Slip.rpt"
    3.     .ReplaceSelectionFormula "{Leave_table.fIRM}='" & CFIRM.Text & "' AND {leave_table.year}=" & Year(DTPicker1.Value) & " AND {LEAVE_TABLE.MONTH}='" & MonthName(DTPicker1.Month) & "'"
    4.     .Action = 1
    5. End With
    if u r using crystal report control then check the code.........
    using this u can use crystal report in ur project

  12. #12
    Lively Member
    Join Date
    Mar 2006
    Posts
    94

    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

  13. #13

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Re: Problem with EnableCloseButton

    Thanks Shakti and King_George

    Quote 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

  14. #14
    Lively Member
    Join Date
    Mar 2006
    Posts
    94

    Re: Problem with EnableCloseButton

    Quote 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

  15. #15

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    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
  •  



Click Here to Expand Forum to Full Width