[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print

Print Method

Print(bool)

Prints the currently opened report.

Declaration
public bool Print(bool showPrintDialog)
Parameters
Type Name Description
bool showPrintDialog

A boolean value indicating whether to show the print dialog before printing.

Returns
Type Description
bool

true if the print was successful; otherwise, false.

Exceptions
Type Condition
InvalidOperationException

Thrown if the report is not fully loaded.

Print(bool, bool)

Prints the currently opened report.

Declaration
public bool Print(bool showPrintDialog, bool showPrintProgressDialog)
Parameters
Type Name Description
bool showPrintDialog

A boolean value indicating whether to show the print dialog before printing.

bool showPrintProgressDialog

A boolean value indicating whether to show the print progress dialog.

Returns
Type Description
bool

true if the print was successful; otherwise, false.

Exceptions
Type Condition
InvalidOperationException

Thrown if the report is not fully loaded.

Print(bool, bool, bool)

Prints the currently opened report.

Declaration
public bool Print(bool showPrintDialog, bool showPrintProgressDialog, bool usePrintingThread)
Parameters
Type Name Description
bool showPrintDialog

A boolean value indicating whether to show the print dialog before printing.

bool showPrintProgressDialog

A boolean value indicating whether to show the print progress dialog.

bool usePrintingThread

A boolean value indicating whether to use a separate thread for printing.

Returns
Type Description
bool

true if the print was successful; otherwise, false.

Exceptions
Type Condition
InvalidOperationException

Thrown if the report is not fully loaded.

Print(PrintingSettings)

Prints the currently opened report.

Declaration
public bool Print(PrintingSettings settings)
Parameters
Type Name Description
PrintingSettings settings

The printing settings to use.

Returns
Type Description
bool

true if the print was successful; otherwise, false.

Exceptions
Type Condition
InvalidOperationException

Thrown if the report is not fully loaded.