Click to See Complete Forum and Search --> : CrystalReport component VS Unload


jpfo
June 20th, 2001, 03:56 AM
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

Cimperiali
June 21st, 2001, 02:27 AM
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.