Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Calling reports 6i from VisualBasic 6.0


Message #1 by "Pushpanathan N" <pushpanathan.n@t...> on Tue, 22 Jan 2002 09:37:42
Hi,
  I have an application running on VB 6.0 which uses reports 6i ocx 
control rwsxa60.ocx. If or1 is the ocx name, then one of the events with 
this ocx is 

or1_AfterRunReport(ByVal ReportHandle As Long, ByVal ResultCode As Long)

which gets triggered once the report has completed the execution.This code 
when i build as an exe and run it, crashes after i close the reports 
window. The same code if i run from the vbp doesn't crash...but, if i set 
a breakpoint in afterrunreport event in vbp and run it crashes again... It 
gives unhandled exception in Msvbvm60.dll and crashes. The same 
application if i dont have the Report handle anywhere in my code, works as 
an exe too.Its worth mentioning here that the code with AfterRunReport 
works fine with VB 5.0 code.

Can anyone help me out, as it is very critical to our project.

Thanks & regards
Push

  Return to Index