We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Chart Save with custom size

Thread ID:





115566 Jan 22,2014 11:27 AM Jan 28,2014 04:11 AM WPF 1
Tags: Chart
Eric Zwirnmann
Asked On January 22, 2014 11:27 AM

I want to be able to export a chart to a .png file where the chart width and height is a size larger than what is displayed on the GUI.  For instance if the user shrinks down the width of the GUI, the chart is configured to get narrow as well.  When the user currently exports the chart, the output is the shrunk chart.  I want to be able to export the chart at a fixed larger width and height than what is displayed on the GUI without changing the GUI.

Karthikeyan V [Syncfusion]
Replied On January 28, 2014 04:11 AM

Hi Eric,

Thanks for using the Syncfusion products.

We have analysed reported requirement. You can achieve your requirement by help of CopyToClipboard method in ChartArea.

Code Snippet [C#]:

void Savebtn_Click(object sender, System.Windows.RoutedEventArgs e)



SaveFileDialog saveFileDialog = new SaveFileDialog();

              string C_imageFilesFilter = "Bitmap(*.bmp)|*.bmp|JPEG(*.jpg,*.jpeg)|*.jpg;*.jpeg|Gif (*.gif)|*.gif|TIFF(*.tiff)|*.tiff|PNG(*.png)|*.png|WDP(*.wdp)|*.wdp|Xps file (*.xps)|*.xps|All files (*.*)|*.*";

            saveFileDialog.Filter = C_imageFilesFilter;


            if (saveFileDialog.ShowDialog() == true)





We have prepared a sample based on this and please find the sample under the following location.

Note: If your requirement not based on this, please give me more information about your requirement. This would be helpful for us to serve you

Please let us know if you require further assistance on this.


Karthikeyan V.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.