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

In This Topic
    UseStandardDialog Property
    In This Topic
    Gets or sets a value indicating whether the standard print dialog should be used.
    Syntax
    'Declaration
     
    Public Property UseStandardDialog As Boolean
    public bool UseStandardDialog {get; set;}

    Property Value

    true to use the standard print dialog; otherwise, false to use a custom dialog that may include additional options such as an "Advanced" button.
    Remarks
    The standard print dialog provides a consistent user experience that matches the operating system's look and feel. It includes basic printing options such as page order, page scaling, and number of pages per sheet. Setting this property to false allows the application to present a custom print dialog to the user. This custom dialog can include additional features and options, such as an "Advanced" button for accessing more detailed print settings. This flexibility can be useful for applications that require more control over the printing process or need to expose application-specific printing options to the user. It is important to consider the target audience and the complexity of the printing requirements when deciding whether to use the standard dialog or a custom one. The standard dialog is recommended for most scenarios due to its simplicity and familiarity to users.
    Example
    This example demonstrates how to enable the standard print dialog:
    var printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
    printerSettings.UseStandardDialog = true;
    // Proceed with printing operations
    See Also