[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Collapse]Chart Control
   [Expand]Product Information
   [Expand]Getting Started
    [Collapse]Creating Charts
     [Expand]2D Chart Types
     [Expand]3D Chart Types
     [Expand]Providing Data
     [Expand]Data Representation
     [Expand]Appearance Customization
       Storing the Chart Layout
       Exporting a Chart
    [Expand]Chart Elements
    [Expand]End-User Interaction
     Supported Browsers
     Adding a Web Chart
     Handling Client-side Scripts
     Medium Trust Support
     Web Farm and Web Gardens Support
   [Expand]Design-Time Features
   [Expand]Visual Elements
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Exporting a Chart

This document describes how a Web chart can be exported on the client side.

Since a chart is represented as an image on the client-side, its impossible to save its overall layout (as the WebChartControl.SaveToFile and WebChartControl.SaveToStream methods do). Instead, you can use the ASPxClientWebChartControl.SaveToDisk and ASPxClientWebChartControl.SaveToWindow methods of an ASPxClientWebChart object, to export the chart to one of the available formats (PDF, XLS, XLSX, MHT, RTF, RTF, PNG, JPEG, BMP, TIFF and GIF).


Exporting a chart to all formats (except for image) is based upon the XtraPrinting Library, so do not forget to add a reference to the DevExpress.XtraPrinting assembly into your project's References list.

A related example is available online, in the DevExpress Code Central database at How to export a web chart on a client side.

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