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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrading App to CR10

Status
Not open for further replies.

jedownsjr

IS-IT--Management
Jun 2, 2003
121
US
I have a simple VB6 application that uses the CR8.5 RDC to access CR8.5 reports. We have upgraded our report files to CR10 and I am now receiving the error message "Invalid TLV Record" when trying to access the updated reports -- presumably because the CE8.5 RDC isn't backward compatible with the new report files. So ... I guess I need to upgrade my VB6 application to use the new CR10 RDC.

I'm not terribly experienced with this ... could someone please run me through the steps I would need to go through to upgrade the RDC component and anything else I might need to do in my VB6 app to get it upgraded?

Thanks in advance for the help!
 
You need to update your references, and if you're using a CRViewer, you need to update that as well:

Reference:
Old: Crystal Reports 8.5 ActiveX Designer Run Time Library
New: Crystal Reports ActiveX Designer Run Time Library 10.0

CRViewer component:
Old: Crystal Report Viewer Control
New: Crystal ActiveX Report Viewer Library 10.0

As for deployment, you can download the RDC merge modules, and include them in an installer package:

Your code will probably be ok as is, as the RDC Object Model has stayed pretty consistent since CR 8.

-dave
 
Thanks for the suggestion, but my app is actually much simpler than this. I am not distributing it at all and have not built a distribution package for it.

It basically just accesses a CR file, does a few things with that file, then goes to the next one and so forth. Rather than distribution packages with DLL's, I just have the source code that I wrote in VB6, then I compile it into a single EXE file. (I guess that it works because all of the required DLL's are already loaded on my machine, which has CR Developer installed on it.)

I think all I need to do is remove the CR8.5 RDC object from my form, then add the CR10 RDC object, and hopefully the app will use the same code and work with the CR10 files after doing this. Does this make sense?
 
Yep, just update your the reference, replace the 8.5 CRViewer, and you should be good to go.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top