SAP Knowledge Base Article - Public

1349972 - How to determine the version of Crystal Reports used to create a report?

Symptom

Some applications may have the requirement of retrieving the version of Crystal Reports used to create the report.

Resolution

  • Only the RAS ( Report Application Server ) SDK includes API's to retrieve the version information.
  • The APIs are:

CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument.MajorVersion
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument.MinorVersion

  • A C# example code looks like this:
MessageBox.Show("Report Version: " + (rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString()), "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);

Keywords

KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

Crystal Reports 2008 V1