Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: VB6 + XIR2 = Crash ( .viewreport is called) Post Reply Post New Topic
Author Message
mattvb_70
Newbie
Newbie


Joined: 27 Dec 2010
Online Status: Offline
Posts: 2
Quote mattvb_70 Replybullet Topic: VB6 + XIR2 = Crash ( .viewreport is called)
     Posted: 01 Apr 2012 at 10:32pm

Hi to all and sorry for my baaaaad english ,

I have an ActiveX DLL (VB6) which has a method that returns a Crystal
Reports Report (CRAXDRT.Report).

Besides that, I have a normal VB6 project which contains a form with a
ReportViewer control on it.
 This application reffers to the ActiveX DLL and
uses it to generate the report which is binded to the CRViewer.
The generation works fine and the report is shown on the screen when i am in the debug mode but ... crash when the project is compiled .

The application crash without errors when i call the .ViewReport method ,
and exit with no messages ...

I can attach a small piece of project  ...

LINK TO DOWNLOAD



Edited by mattvb_70 - 01 Apr 2012 at 11:23pm
IP IP Logged
mattvb_70
Newbie
Newbie


Joined: 27 Dec 2010
Online Status: Offline
Posts: 2
Quote mattvb_70 Replybullet Posted: 02 Apr 2012 at 10:53am
Solved !
Put this code AFTER .ViewReport

Do Until frmAnteCrystal.CrViewer.IsBusy = False
   DoEvents
Loop



Edited by mattvb_70 - 02 Apr 2012 at 10:54am
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum