[Expand]General Information
[Expand]WinForms Controls
[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
[Collapse]Office File API
  Demo Application
  Redistribution and Deployment
 [Expand]Spreadsheet Document API
 [Expand]Word Processing Document API
 [Collapse]PDF Document API
   Getting Started
   Coordinate Systems
   Document Generation
  [Expand]PDF Graphics
  [Expand]Document Manipulation
  [Expand]Additional Content
  [Expand]Interactive Forms
   Text Markup Annotations
  [Expand]Document Security
   [Collapse]PDF Graphics and Additional Content
     How to: Generate a Document Layout from Scratch
     How to: Create Graphics in a Document with Landscape and Portrait Page Orientations
     How to: Add a Link to a Page
     How to: Add a Link to URI
     How to: Add Bookmarks to a Document
     How to: Bookmark Search Results in a Document
     How to: Highlight Search Results in a Document
     How to: Create an Interactive Form
     How to: Attach a File to a Document
   [Expand]Interactive Form
   [Expand]Text Markup Annotation
   [Expand]Extract Content from a PDF Document
   [Expand]Manage Pages of a PDF Document
   [Expand]Document Protection
   [Expand]Export a PDF Document to an Image
 [Expand]Excel Export Library
 [Expand]Snap Report API
 [Expand]Zip Compression and Archive API
 [Expand]Barcode Generation API
 [Expand]Unit Conversion API
 [Expand]API Reference
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Attach a File to a Document


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

This example shows how to programmatically attach a file to the PDF document.

To do this:

Expanded See Also

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