How to determine the version of Crystal Reports used to create a report?
[crystal re] [crystal reports] [crystal reports 10] [crystal reports xi]
Related:
- 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")...
- 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);