Log In
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [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]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [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]Document Server
[Expand]Report 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?​​​​​​​