ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / PrintingSettings Property
Example

In This Topic
    PrintingSettings Property (Viewer)
    In This Topic
    Gets or sets the printing settings for the Viewer, determining the behavior of the print operation.
    Syntax
    'Declaration
     
    Public Property PrintingSettings As PrintingSettings
    public PrintingSettings PrintingSettings {get; set;}

    Property Value

    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 (GrapeCity.Viewer.Common.PrintingSettings.ShowPrintDialog), the print progress dialog (GrapeCity.Viewer.Common.PrintingSettings.ShowPrintProgressDialog), and printing on a separate thread (GrapeCity.Viewer.Common.PrintingSettings.UsePrintingThread), optimizing the printing process for user experience and performance.
    Example
    // 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;
    See Also