CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    Portugal
    Posts
    26

    CrystalReport component VS Unload

    URGENT.Help me please...( I rate my help )
    I have a MDIForm with a complex menu programed in a module, and in a option i wrote:
    If Menu.myoption.Text = "AN40" Then
    myform.crystalreport.ReportFileName = rserver & "\mycristalreport"
    myform.myprocedure
    in the form the myprocedure opens mycristalreport and all functions.
    My problem is i must know when mycrystalrport is closed, for some other code. How can i do that?
    If i put the Unload command the report opens and close imediatily....
    I using VB6, SQL7, WNT and Crystal8
    ...sorry my bad English




  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: CrystalReport component VS Unload

    Can you dim your crystalreport withenents?
    ie:
    dim withevents crystalreport as...
    if you can, then look at the events added for an unload (or close) event...

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured