v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Example
Find By ID

How to export a web chart on a client side

Log in to Track Changes
Download Example View Example Online Example Runner
E544
Microsoft Visual Studio 2005, Microsoft Visual Studio 2008, Microsoft Visual Studio 2010
v2008 vol 2.2 - v2011 vol 2.8
v
XtraCharts Suite
WebChartControl
4/7/2010

This example demonstrates how to use client-side events to export a WebChartControl to PDF on a client side. To do this, it is necessary to do the following:
1. Set the WebChartControl.ClientInstanceName property to some value (e.g. "chart1");
2. Add two ASPxButton controls to a web page, and set their AutoPostBack properties to False;
3. Handle their client-side Click event as "chart1.SaveToWindow('pdf');" or "chart1.SaveToDisk('pdf');".

NOTE: Since exporting a chart to PDF is based upon the XtraPrinting Library, don't forget to add a reference to the DevExpress.XtraPrinting assembly into your project's References list.

Log in to Track Changes
Download Example View Example Online Example Runner
v
v
Search
Searching Tips