1392793 - How to retrieve Crystal report version information using Visual Studio .NET?

SAP Knowledge Base Article - Public

1392793 - How to retrieve Crystal report version information using Visual Studio .NET?

Symptom

  • A requirement states that a report version information must be displayed in the report.

Resolution

  • The solution requires the use of the InProc RAS API.
  • C# code to retrieve the report version information:

CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
ISCDReportClientDocument rptClientDoc;

rptClientDoc = new ReportClientDocumentClass();
MessageBox.Show("Report Version: " + (rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString()), "App", MessageBoxButtons.OK, MessageBoxIcon.Information);

Keywords

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

Product

Crystal Reports 2008 V1