SAP Knowledge Base Article - Public

1722342 - Is it possible to find Performance Information of Crystal Reports using .NET SDK?

Symptom

Is it possible to find Performance Information of Crystal Reports using .NET SDK?

Environment

  • Crystal Reports 2008.
  • Crystal Reports for Visual Studio 2010.

Resolution

There are no APIs that can help find the performance information of the report; however time taken to load the report can be found using following:

           string filePath = @"c:\CrystalReport1.rpt";
           System.DateTime startTime, endTime;
           System.TimeSpan diffTime;
           ReportDocument rd = new ReportDocument();
           
           startTime = System.DateTime.Now;
           rd.Load(filePath);
           endTime = System.DateTime.Now;
           diffTime = endTime.Subtract(startTime);
           textBox1.Text = diffTime.Milliseconds.ToString();

Keywords

cr crvs2010 cr4vs2010 crvs .net sdk net loading info , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio