Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewerControl.ImportFormData() Method

In This Article

Imports interactive data either from XML or FDF data format into a PDF form.

Namespace: DevExpress.Xpf.PdfViewer

Assembly: DevExpress.Xpf.PdfViewer.v24.2.dll

NuGet Package: DevExpress.Wpf.PdfViewer

#Declaration

public void ImportFormData()

#Remarks

The ImportFormData method invokes the Open dialog window, where you can specify a file name and file format (XML or FDF) from which a PDF document with interactive form is loaded.

You can call the ImportFormData method in the PdfViewerControl.DocumentLoaded event handler after a PDF document is loaded.

View Example

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxpdf="http://schemas.devexpress.com/winfx/2008/xaml/pdf"
        x:Class="ImportFormData.MainWindow"
        Title="MainWindow" Height="450" Width="600">
    <Grid>

        <dxpdf:PdfViewerControl x:Name="Viewer"
                                DocumentLoaded="Viewer_DocumentLoaded"
                                DocumentClosing="Viewer_DocumentClosing"/>
    </Grid>
</Window>

You can use PdfViewerExtensions.Import method to import interactive form data with specified format settings. Add DevExpress.Docs reference to your application to access extension methods.

Important

You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use this member in production code. Refer to the DevExpress Subscription page for pricing information.

Refer to the How to: Import the AcroForm Data topic for more information.

See Also