Page 1 of 1
Export teechart to Powerpoint
Posted: Thu Sep 10, 2009 11:58 am
by 13045482
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"
Re: Export teechart to Powerpoint
Posted: Thu Sep 10, 2009 1:37 pm
by 13045482
A swift reply will be appreciated as its a very urgent..many thanks in advance.
Re: Export teechart to Powerpoint
Posted: Thu Sep 10, 2009 2:24 pm
by narcis
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.
Re: Export teechart to Powerpoint
Posted: Thu Sep 10, 2009 5:41 pm
by 13045482
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..
Re: Export teechart to Powerpoint
Posted: Mon Sep 14, 2009 10:01 am
by narcis
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!