Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Services
    Events
    Commands
    HTML Tag Support
   [Collapse]Examples
    [Expand]UI Customization
    [Expand]Files
    [Expand]Text
    [Expand]Formatting
    [Expand]Styles
    [Expand]Lists
    [Expand]Pictures
    [Expand]Text Boxes
    [Expand]Tables
    [Expand]Document Elements
    [Expand]Layout
    [Expand]Automation
     Spell Check
    [Collapse]Export
      How to: Retain the Image URI in an HTML Document
      How to: Save a Document as a Series of Images
    [Expand]Printing
    [Expand]Protection
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[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: Save a Document as a Series of Images

This example shows how to use the DXPrinting library to save a document as a series of images. The API from the table below allows you to accomplish this task.

Member Description
PrintableComponentLinkBase.PrintableComponentLinkBase Initializes a new instance of the PrintableComponentLinkBase class with the default settings.
PrintableComponentLinkBase.Component Gets or sets a IPrintable user implementation printed via the current link.
PrintableComponentLinkBase.CreateDocument For internal use.
ImageExportOptions.ImageExportOptions Initializes a new instance of the ImageExportOptions class with the default settings.
ImageExportOptions.ExportMode Specifies whether document pages are exported to a single or multiple images.
ImageExportOptions.Format Specifies the image format for exporting a document.
ImageExportOptions.Resolution Specifies the image resolution (in DPI).
ImageExportOptions.PageRange Specifies the range of pages to be exported.
PrintingSystemBase.ExportToImage Exports a document to the specified stream in Image format using the defined Image-specific options.

Show Me

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

The following code snippet exports the document to a series of PNG images with the specified options.

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