Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrade from Crystal Reports 9 to XI in VB6

Status
Not open for further replies.

progenysend

Technical User
Feb 15, 2008
41
US
Hi,

Start this by saying I'm a Crystal Reports developer, not VB.

I've got an application that already uses Crystal 9. There's about 20 instances in the code where CRViewer91 is used. I need to upgrade this all to Crystal XI R2. So far, the problems I'm having...

I don't know what to update the CRViewer91 code to. CRViewer alone doesn't work.

CRViewer91.ReportSource = Report
CRViewer91.Refresh
CRViewer91.ViewReport


VB6 won't use the CrystalActiveXReportViewer unless I open it in administrator mode.

Thanks
 
CRViewer91 most likely is the object instance name. You don' t need to change it. Try to find "CRViewer91 as"
it could be
"Dim CRViewer91 as ..." or "Private CRViewer91 as ..." also Public , Friendly ...
You will need to replace what is after "as". Before that you will need to add reference to the Crystal XI objects and remove the reference to Crystal 9 objects from the vb6 project.

I will suggest you to look arround for third party report viewers.

Viewer, scheduler and report manager for Crystal reports and SSRS.
Send your report everywhere.
 
You will need to change the references in your application. That will remove the viewer objects on any forms and you can then replace the objects with CR Xi versions.

Note this is the last version that supports the RDC. If you want to support later versions of Crystal you will need to use Dot Net and the matching version of the framework to the version of dot net. I've got a diagram on my web site at


Bruce Ferguson
 
Thanks for your responses.

A third party viewer is not an option in this environment.

I finally got VB to accept the Crystal XI viewer outside of Administrator mode by running it in XP compatibility mode.

It turns out the CRViewer91 was just the name on the Viewer Object. I replaced the object with the CrystalActiveXViewer and renamed it CRViewer91 so all the code would reference it. That did nothing. Now the reports just won't run.
 
I finally got it all working. Turns out I was just missing that the viewer was embedded in two different areas referencing eachother for some reason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top