Link to home
Start Free TrialLog in
Avatar of Daniel Burleson
Daniel BurlesonFlag for United States of America

asked on

How to programmatically differentiate which version of Crystal is used

How does one control which version of Crystal gets invoked when versions 8.5 and 10.0 are both installed on the same computer (Windows XP SP3). Using the following code, version 8.5 is always invoked although there is the suffix ".10".

Since I am opening a version 10 file, I get the message "Invalid TLV record".  If I open a version 8.5 file it works.  I do not want to uninstall 8.5, but rather control which version is used.
Set App = CreateObject("CrystalRuntime.Application.10")
Set Rept = App.OpenReport(RptFile)

Open in new window

Avatar of Marcus Aurelius
Marcus Aurelius
Flag of United States of America image

Just thinking about this, I wonder if this is a SAFETY built into the application to always choose the LOWEST version of CR?

I've always understood that IF you open a LOWER VERSION of a report in a NEWER Version...it will be transformed into the NEW version....which is not always good....

Also, it sounds like you are using Visual Studio to invoke your reports...right? I'd check to see if there is a patch or an update that will allow you to choose the version 10.

ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial