1295770 - How to add a SummaryInfo to a report using the Crystal Reports .NET SDK

SAP Knowledge Base Article - Public

1295770 - How to add a SummaryInfo to a report using the Crystal Reports .NET SDK

Symptom

How to add a SummaryInfo to a report using the Crystal Reports .NET SDK ?

Reproducing the Issue

  • .NET Visual Studio 2005
  • C#
  • Resolution

    sample code :

            using System;
            using System.Windows.Forms;
            using CrystalDecisions.CrystalReports.Engine;



            ReportDocument                m_boReportDocument;

             //create a new ReportDocument
             m_boReportDocument = new ReportDocument();

             //load the RPT file 
             m_boReportDocument.Load("..\\..\\Samplereport.rpt");

             //set the SummaryInfo content                    
             m_boReportDocument.SummaryInfo.ReportAuthor = "Author";
             m_boReportDocument.SummaryInfo.ReportComments = "Comments";
             m_boReportDocument.SummaryInfo.ReportSubject = "Subject";
             m_boReportDocument.SummaryInfo.ReportTitle = "Title";


              //show in reportviewer
              crystalReportViewer1.ReportSource = m_boReportDocument;

    Keywords

    How add SummaryInfo Crystal Reports .NET SDK , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

    Product

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