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

[] [] [] []

Related:

  1. Second and subsequent pages of a report appear blank in the Crystal Reports HTML viewer for VS .NET.Symptom A爎eport is stored in Session using the code below.燬ession("crReportDocument")...
  2. How to build a setup package with Crystal Reports 2008 SP1 merge modules and Visual Studio .NET 2008?Symptom Dependency warnings with:ATLOpenMPMFCCRTMFCLOCCrystal Reports 2008 SP1 merge modules.How to...

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);

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment