Page 1 of 1
export multiple charts into the clipboard
Posted: Wed Jun 18, 2008 9:22 am
by 14048132
Hi,
Can I export multiple charts into the clipboard and then paste into
word or excel?
I'm using TeeChart.NET version 3 Build 3.5.3054.17205 and
VS2005(VB.net).
Thanks.
Posted: Wed Jun 18, 2008 10:41 am
by narcis
Hi Chris.CHWU,
Would you like to export all charts into an image and then copy that image to the clipoard?
Thanks in advance.
Posted: Wed Jul 02, 2008 10:27 am
by 14048132
narcis wrote:
Would you like to export all charts into an image and then copy that image to the clipoard?
Yes. Is it possible?
Posted: Wed Jul 02, 2008 10:58 am
by narcis
Hi Chris,
Put a panel on a winform and put two tcharts inside it. Then in a separate button run the following code:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
tChart1.Graphics3D.UseBuffer = false;
tChart2.Graphics3D.UseBuffer = false;
Bitmap bmp = new Bitmap(panel1.Width, panel1.Height);
panel1.DrawToBitmap(bmp, panel1.ClientRectangle);
//bmp.Save(@"C:\temp\twocharts.bmp");
tChart1.Graphics3D.UseBuffer = true;
tChart2.Graphics3D.UseBuffer = true;
Clipboard.SetImage(bmp);
}