PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / ThrowExceptionOnError Property

In This Topic
    ThrowExceptionOnError Property (SampleC1PrintDocument)
    In This Topic
    Gets or sets a value indicating whether an exception should be raised if an error occurs while the current document generates. If this property is false, the C1.C1Preview.C1PrintDocument.Generate method will return false if errors occurred while generating, otherwise an exception will be thrown on the first error.

    The default value is false.

    Syntax
    'Declaration
     
    Public Property ThrowExceptionOnError As Boolean
    public bool ThrowExceptionOnError {get; set;}
    See Also