CrystalReportViewer.PrintReport Method

Prints the report displayed in the CrystalReportViewer control.

Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

Syntax

'Declaration
Public Overrideable Sub PrintReport () 
public virtual void PrintReport ()

Remarks

Prints the report that is currently displayed in the CrystalReportViewer control. It will display the standard windows printer dialog.

Example

The following example prints the report.

'Declaration

      Private Sub PrintReport()
         CrystalReportViewer.PrintReport()
      End Sub
      
      private void PrintReport()
      {
         crystalReportViewer.PrintReport();
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Windows.Forms Namespace