Hello TeeChart crew,
I am a new member here.I have some questions.
1)I have a winform with 2 tabcontrols each tabcontrol containing 2 tabpages.How to copy a particular tabpage with teecharts on it and paste in MSWord?
2)Can we copy a particular teechart without exporting it?
3)Can we right click on a teechart on tabpage and have some menucontrols like copy,print etc?
Thanx in advance.
Regards
Copying a TeeChart
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi vijay,
Please find below the answers to your questions:
1. To copy a TChart to the clipboard you need to use something like this:
If you need to copy the full TabPage you will have to loo for how this control is copied to the clipboard, for example:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmancli/html/25152454-0e78-40a9-8a9e-a2a5a274e517.htm
2. No, you'll need to copy the chart to a native template file (.ten), a MemoryStream or an image as shown above.
3. You can do this:
Or use a ContextMenu where the desired commands are implemented for each menu option.
Please find below the answers to your questions:
1. To copy a TChart to the clipboard you need to use something like this:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
tChart1.Export.Image.JPEG.CopyToClipboard();
}
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmancli/html/25152454-0e78-40a9-8a9e-a2a5a274e517.htm
2. No, you'll need to copy the chart to a native template file (.ten), a MemoryStream or an image as shown above.
3. You can do this:
Code: Select all
private void tChart1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
tChart1.ShowEditor();
}
}
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi vijay,
It works fine for me here using latest Debug Build version available at the client area. Which TeeChart version are you using?
If the problem persists could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
It works fine for me here using latest Debug Build version available at the client area. Which TeeChart version are you using?
If the problem persists could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi vijay,
You could try using TeeChart's Bitmap exporting feature. You could also use tChart1.Draw method and draw in the canvas you want. The forums threads below may be helpful as well:
http://www.teechart.net/support/viewtopic.php?t=1883
http://www.teechart.net/support/viewtopic.php?t=2053
http://www.teechart.net/support/viewtopic.php?t=3022
You could try using TeeChart's Bitmap exporting feature. You could also use tChart1.Draw method and draw in the canvas you want. The forums threads below may be helpful as well:
http://www.teechart.net/support/viewtopic.php?t=1883
http://www.teechart.net/support/viewtopic.php?t=2053
http://www.teechart.net/support/viewtopic.php?t=3022
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 |