Share via


ReportOptions Class

Allows you to get and set the data related report options in a report.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)

Syntax

'Declaration
Public Class ReportOptions
    Inherits EngineObjectBase
    Implements IDisposable
public class ReportOptions : EngineObjectBase, IDisposable

Example

This example sets the report options.

'Declaration

          Private Sub InitializeReportOptions(ByVal myReportDocument As ReportDocument)
             myReportDocument.ReportOptions.EnableSaveDataWithReport = True
             myReportDocument.ReportOptions.EnableSavePreviewPicture = True
             myReportDocument.ReportOptions.EnableSaveSummariesWithReport = True
             myReportDocument.ReportOptions.EnableUseDummyData = True
             myReportDocument.ReportOptions.InitialDataContext = "Data Context"
             myReportDocument.ReportOptions.InitialReportPartName = "Report Part"
          End Sub
          
          private void InitializeReportOptions(ReportDocument reportDocument)
          {
             reportDocument.ReportOptions.EnableSaveDataWithReport = true;
             reportDocument.ReportOptions.EnableSavePreviewPicture = true;
             reportDocument.ReportOptions.EnableSaveSummariesWithReport = true;
             reportDocument.ReportOptions.EnableUseDummyData = true;
             reportDocument.ReportOptions.InitialDataContext = "Data Context";
             reportDocument.ReportOptions.InitialReportPartName = "Report Part";
          }
          

Inheritance Hierarchy

Object
   EngineObjectBase
      ReportOptions

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

ReportOptions Members
CrystalDecisions.CrystalReports.Engine Namespace