[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PrinterSettings.ShowPrintDialog

ShowPrintDialog Property

ShowPrintDialog

Gets or sets a value indicating whether the print dialog is displayed before the printing process starts.

Declaration
public bool ShowPrintDialog { get; set; }
Property Value
Type Description
bool

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.

Examples

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