menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormFieldsImportFailedEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FormFieldsImportFailedEventArgs

    Provides event data for the failure of form fields import in the SfPdfViewer2 component.

    Inheritance
    System.Object
    FormFieldsImportFailedEventArgs
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class FormFieldsImportFailedEventArgs : Object
    Remarks

    The FormFieldsImportFailedEventArgs class contains details about the error that occurred during the form fields import process. This class allows developers to access error information and take appropriate actions when the import fails.

    Examples
    <SfPdfViewer2 @ref="Viewer" DocumentPath="@DocumentPath" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldsImportFailed="@OnFormFieldsImportFailed"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    void OnFormFieldsImportFailed(FormFieldsImportFailedEventArgs args)
    {
        // Handle the import failure
        Console.WriteLine($"Import failed with error details: {args.ErrorDetails}");
        // Implement custom error handling logic
    }
    }

    Constructors

    FormFieldsImportFailedEventArgs()

    Declaration
    public FormFieldsImportFailedEventArgs()

    Properties

    ErrorDetails

    Gets the error details associated with the failure of the form fields import process in the SfPdfViewer2 component.

    Declaration
    public string ErrorDetails { get; }
    Property Value
    Type Description
    System.String

    A System.String that contains detailed error information related to the import failure. This may include a stack trace, error message, or any specific failure context.

    Remarks

    This property provides a detailed error message that explains why the form fields import failed, allowing you to diagnose and handle the failure appropriately.

    Examples
    <SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
        <PdfViewerEvents FormFieldsImportFailed="@OnFormFieldsImportFailed"></PdfViewerEvents>
    </SfPdfViewer2>
    
    @code {
    void OnFormFieldsImportFailed(FormFieldsImportFailedEventArgs args)
    {
        // Handle the import failure
        Console.WriteLine($"Import failed with error details: {args.ErrorDetails}");
        // Implement custom error handling logic
    }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved