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.
export multiple charts into the clipboard
-
- Newbie
- Posts: 57
- Joined: Wed Jan 30, 2008 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Chris.CHWU,
Would you like to export all charts into an image and then copy that image to the clipoard?
Thanks in advance.
Would you like to export all charts into an image and then copy that image to the clipoard?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 57
- Joined: Wed Jan 30, 2008 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Chris,
Put a panel on a winform and put two tcharts inside it. Then in a separate button run the following code:
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);
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |