Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Interactive Forms
   [Expand]Navigation
   [Expand]Interactivity
    Deployment
   [Collapse]Examples
    [Collapse]Getting Started
      How to: Add a PDF Viewer to the WinForms Application at Design Time
      How to: Add a PDF Viewer to the WinForms Application via Code
      How to: Load a PDF Document from a File
      How to: Load a PDF Document from a Stream
    [Expand]Interactive Form
    [Expand]Interactivity
    [Expand]Customization
    [Expand]Miscellaneous
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Load a PDF Document from a File

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E4696.

The following example illustrates how to load an existing PDF file into the PdfViewer control. To do this, it's necessary to drop the PdfViewer control onto the form, create a Ribbon via the PdfViewer's smart tag and call the PdfViewer.LoadDocument method.

Expanded See Also

Is this topic helpful?​​​​​​​