ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.ActiveReports Namespace / PrinterSettings Class / ShowPrintDialog Property
Example

In This Topic
    ShowPrintDialog Property
    In This Topic
    Gets or sets a value indicating whether the print dialog is displayed before the printing process starts.
    Syntax
    'Declaration
     
    Public Property ShowPrintDialog As Boolean
    public bool ShowPrintDialog {get; set;}

    Property Value

    true to display the print dialog; otherwise, false. The default is true.
    Remarks
    When set to true, the print dialog is shown to the user, allowing them to select printer settings such as the printer to use, the range of pages to print, and the number of copies. This dialog provides a final confirmation before printing begins, offering users greater control over the printing process. Setting this property to false bypasses the print dialog, and the printing process starts immediately with the current printer settings. This option is useful for automated printing scenarios where user interaction is not required or desired.
    Example
    This example demonstrates how to disable the print dialog for automated printing:
    var printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
    printerSettings.ShowPrintDialog = false;
    // Proceed with printing operations
    See Also