Adding a Crystal Reports 8.5 report to VB6 crashes it

Hi
VB 6 crashes every time I'm trying to add a report I have created using Crystal Reports 8.5 to a project.

Any ideas?
Thanx
EtzieAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
GhostModConnect With a Mentor Commented:
PAQed with points refunded (500)

GhostMod
Community Support Moderator
0
 
mlmccCommented:
Have you added the appropriate Crystal dlls to the VB application?

Which edition of Crystal 8.5?

Is Crystal installed on the machine?

Was a previous version of Crystal on the machine?

What method are you using to connect to the report?

What OS?

mlmcc
0
 
EtzieAuthor Commented:
-Edition: 8.5.0.217
-Crystal Reports is installed on the machine
-No prevoious editions of Crystal Reports were installed on the machine
-I'm not connecting to the report I'm just trying to add it to my project
-OS: Windows XP Professional

Thanx
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
mlmccCommented:
Which edition - Professional or Developer?  You need the Developer edition to run Crystal from an application.  The professional edition doesn't include the required ddls.

mlmcc
0
 
EtzieAuthor Commented:
Developer edition.
I have done it before in previous VB projects hence my confusion.
I'll try to re-install Crystal maybe that will do the trick.

Thanx
0
 
EtzieAuthor Commented:
Developer edition Upgrade.
Still, it has worked in the passed.
0
 
EtzieAuthor Commented:
Quick update:
I've Uninstalled Crystal and reinstalled it but still no good.

The dlls I'm referencing in my VB project are:
Crystal Reports 8.5 ActiveX Designer Design and Runtime Library
Crystal Reports 8.5 ActiveX Designer Runtime Library
Crystal Reports 8.5 Library
0
 
mlmccCommented:
You only need 1 of these
Crystal Reports 8.5 ActiveX Designer Design and Runtime Library
Crystal Reports 8.5 ActiveX Designer Runtime Library

My recommndation unless you need the design features (royalty required) select the Designer Runtime.

That shouldn't be the cause.

DO the reports open in the designer?

mlmcc

0
 
EtzieAuthor Commented:
Designer as in Crystal Reports application?
Yes - I've created it in it and now just want to add it to the VB project
0
 
EtzieAuthor Commented:
I've experimented a bit and it's not just adding an existing report to a VB project -
VB crushes even when I try to add a new blenk Crystal Report to it.
0
 
mlmccCommented:
Looking at the dlls again, I think you are missing one.

CRVIEWER.DLL


mlmcc
0
 
EtzieAuthor Commented:
I've added it and removed the Designer Design and Runtime Library.
Still no joy.
It's doing my head in!
It useed to work without any problem in the past and I can't think of anything I have changed.

Thanx
Guy
0
 
mlmccCommented:
Is it crashing when you add the report not when you run the project?

If so I would uninstall both CR8.5 and VB.  Reboot.  Reinstall VB.  Reboot.  Reinstall Crystal.

Something must have changed.  

mlmcc
0
 
EtzieAuthor Commented:
When I try to add the report.
I agree - something must have changed.
I'll start uninstalling and reinstalling the lot of them :(

Thanx mate
0
 
EtzieAuthor Commented:
Hi again
I've uninstalled and reinstalled VB and Crystal Reports yet VB still crashes when I try to add a report to it.
I'm out of ideas at the moment.
Last time I've added a report successfully to a VB project  my OS was Windows 98 and now I use XP pro. Could that effect it?

Thanx
Guy
0
 
mlmccCommented:
Could be CR8.5 wasn't tested on XP.  It is supported.  You may have to change the code.

Have you installed the latest CR8.5 service pack?
http://support.businessobjects.com/communityCS/FilesAndUpdates/cr85devwin_en.zip.asp

Here are the latest database drivers
http://support.businessobjects.com/communityCS/FilesAndUpdates/dbexdrvrwin_en.zip.asp

mlmcc
0
 
EtzieAuthor Commented:
Hi mlmcc
I've updated to the latest hotfix but still no joy :(

Thanx a lot for trying mate
0
 
mlmccCommented:
Do you happen to have a machine you can do a clean install of Win XP then SP2 (if you wish), then VB and the service packs, and finally CR8.5 and the updates.  If this allows you to build applications and add reports then there is something wrong on your machine and a rebuild of it my be needed.

mlmcc
0
 
EtzieAuthor Commented:
The strange thing is, I can load a report into a different VB project (older one which has about 4 reports in it - as I said the problem never used to exist) and it's all good.
I've checked and both projects have the same refferences.

Any way, I'm tired of spending time on the problem - I've found a workaround - I open the report by code from within the project:
"Set CrxReport = CrxApp.OpenReport(App.Path & "\Monthly Orders Report.rpt")"
which works fine for me.
I would like to find out one day what the was the problem but I guess it won't be today...

Thanx a million mlmcc
Take care
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.