Export teechart to Powerpoint

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Export teechart to Powerpoint

Post by Neelam » Thu Sep 10, 2009 11:58 am

Hi
Please let me know how to export a teechart to Powerpoint?

I have ateechart on windows form and a button. when clecked it should create a PPT and insert a slide and then add this teechart to that slide and close the PPT giving a message that "the chart is saved/exported in <name> Powerpoint file"

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Re: Export teechart to Powerpoint

Post by Neelam » Thu Sep 10, 2009 1:37 pm

A swift reply will be appreciated as its a very urgent..many thanks in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Export teechart to Powerpoint

Post by Narcís » Thu Sep 10, 2009 2:24 pm

Hi shikha,
Please let me know how to export a teechart to Powerpoint?

I have ateechart on windows form and a button. when clecked it should create a PPT and insert a slide and then add this teechart to that slide and close the PPT giving a message that "the chart is saved/exported in <name> Powerpoint file"
I'm afraid this is not possible with TeeChart. Currently you can export a chart to an image into a file or a MemoryStream. You could try searching for .NET code on how to create a PowerPoint document and inserting and image to a slide.

I have also added your request to the wish-list to be considered for inclusion in future releases.
A swift reply will be appreciated as its a very urgent..many thanks in advance.
shikha, your first post on this thread was about 2 hours 30 minutes ago. We try to reply to all forums threads in a timely fashion. I guess you'll understand we are very busy, as I imagine you also are, working on enhancing TeeChart and attending all client requests. In my opinion 2 hours and 30 minutes delay for a direct reply from the technical department is not bad at all. So I'd appreciate you being a little more patient in the future. We'll do our best to reply all threads as fast as we can.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Re: Export teechart to Powerpoint

Post by Neelam » Thu Sep 10, 2009 5:41 pm

Thanks for the reply. Please give one example how to do this with memorystream ? also please let me know if its possible to save the chart to clipboard.. if yes could you please provide for that also?

sorry for sending a reminder at short interval.. i will take care of it in future.. many thanks for your help..

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Export teechart to Powerpoint

Post by Narcís » Mon Sep 14, 2009 10:01 am

Hi shikha,
Thanks for the reply. Please give one example how to do this with memorystream ?
Yes, it's very simple, for example:

Code: Select all

			System.IO.MemoryStream stream = new System.IO.MemoryStream();
			tChart1.Export.Image.JPEG.Save(stream);
			stream.Position = 0;
			pictureBox1.Image = Image.FromStream(stream); 
also please let me know if its possible to save the chart to clipboard.. if yes could you please provide for that also?
Yes, you just need to do this:

Code: Select all

			tChart1.Export.Image.JPEG.CopyToClipboard();
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply