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; |
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); } |
Sample: chart-copytoclipboard