[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Win.Viewer.PrintingSettings

PrintingSettings Property

PrintingSettings

Gets or sets the printing settings for the Viewer, determining the behavior of the print operation.

Declaration
public PrintingSettings PrintingSettings { get; set; }
Property Value
Type Description
PrintingSettings

A combination of PrintingSettings flags that control the print dialog display, print progress dialog display, and whether printing occurs on a separate thread.

Remarks

The default settings enable the print dialog (ShowPrintDialog), the print progress dialog (ShowPrintProgressDialog), and printing on a separate thread (UsePrintingThread), optimizing the printing process for user experience and performance.

Examples
// Assuming 'viewer' is an instance of the Viewer class
// To disable the print dialog while keeping the print progress dialog and printing on a separate thread, you can configure the PrintingSettings property as follows:
viewer.PrintingSettings = PrintingSettings.ShowPrintProgressDialog | PrintingSettings.UsePrintingThread;
// If you want to disable the print progress dialog but keep the print dialog and printing on a separate thread, use the following configuration:
viewer.PrintingSettings = PrintingSettings.ShowPrintDialog | PrintingSettings.UsePrintingThread;