Articles in this section
Category / Section

How to copy the chart to clipboard

1 min read

For copying chart to clipboard, use any one of following methods.

Method 1: In this method, you can copy the chart to clipboard using the copy chart option available in the toolbar. To enable the tooltip, use the following code.

 

chart.ShowToolbar = true;

 

Copying the chart to clipboard using the copy chart option

 

Method 2: In this method, you can use the following code in the button click event to copy the chart to clipboard.

 

private void button1_Click(object sender, EventArgs e)

{

    Image img = new Bitmap(this.chart.Width, this.chart.Height);

    this.chart.Draw(img);

    Clipboard.SetDataObject(img);

}

 

Copying the Chart to the clipboard using the button click

 

Sample: chart-copytoclipboard

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied