SAP Knowledge Base Article - Public

2101359 - ER - RevisionNumber and LastSavedBy added to CR for VS .NET SDK

Symptom

These properties are not available through the .NET SDK

Environment

Crystal Reports for Visual Studio Serice Pack 13

Resolution

How to use either the ReportDocument or ReportClientDocument to return the values:

CrystalDecisions.CrystalReports.Engine.ReportDocument rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

rd.Load("***.rpt");

CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rcd = rd.ReportClientDocument;

CrystalDecisions.ReportAppServer.DataDefModel.ISCRSummaryInfo summaryInfo = rcd.SummaryInfo;

string revisionNumber1 = summaryInfo.RevisionNumber;

string lastSavedBy1  = summaryInfo. LastSavedBy;

string revisionNumber2 = rd.SummaryInfo.RevisionNumber;

string lastSavedBy2  = rd.SummaryInfo.LastSavedBy;

NOTE: currently only available in CR for VS - will request they be put into BI 4.x .NET SDK as well as Java Components.

Keywords

RevisionNumber, LastSavedBy, CR for VS .NET SDK , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio