Class FormFieldsExportFailedEventArgs
Provides event data for the failure of form fields export in the SfPdfViewer2 component.
Inheritance
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
public class FormFieldsExportFailedEventArgs : Object
Remarks
The FormFieldsExportFailedEventArgs
class provides details about the failure that occurred during the form fields export process.
It includes information such as the error message or code that can be used to diagnose the issue.
Examples
<SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
<PdfViewerEvents FormFieldsExportFailed="@OnFormFieldsExportFailed"></PdfViewerEvents>
</SfPdfViewer2>
@code {
void OnFormFieldsExportFailed(FormFieldsExportFailedEventArgs args)
{
// Retrieve and handle the error message
Console.WriteLine($"Export failed with error: {args.ErrorDetails}");
// Implement custom error handling logic
}
}
Constructors
FormFieldsExportFailedEventArgs()
Declaration
public FormFieldsExportFailedEventArgs()
Properties
ErrorDetails
Gets the error details associated with the failure of the form fields export 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 export 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 export failed, allowing you to diagnose and handle the failure appropriately.
Examples
<SfPdfViewer2 @ref="Viewer" Height="100%" Width="100%">
<PdfViewerEvents FormFieldsExportFailed="@OnFormFieldsExportFailed"></PdfViewerEvents>
</SfPdfViewer2>
@code {
void OnFormFieldsExportFailed(FormFieldsExportFailedEventArgs args)
{
// Handle the export failure
Console.WriteLine($"Export failed with error details: {args.ErrorDetails}");
// Implement custom error handling logic
}
}