Teechart to word bookmark

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Lars Iversen
Newbie
Newbie
Posts: 61
Joined: Wed Jun 22, 2005 4:00 am
Location: cph

Teechart to word bookmark

Post by Lars Iversen » Thu Mar 22, 2007 8:47 am

Hi

I need to take a teechart and put it to word at a specific bookmark.
The question is do I have to export to file first and then insert from file into word or can I get a teechart into some kind of stream object and insert that into word. Or is it possible to put the teechart opto the clipboard and then paste into word?
I'm using teechart for .net version 2 (I think)

Thanks in advance
Lars Iversen

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

Post by Narcís » Thu Mar 22, 2007 9:16 am

Hi Lars,

Using TeeChart for .NET v2 you can export a chart into the clipboard and then use it in word. You'll find an example at All Features\Welcome !\Exporting\Chart Picture\Metafile in the features demo. You'll find the demo at TeeChart's program group.
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

Lars Iversen
Newbie
Newbie
Posts: 61
Joined: Wed Jun 22, 2005 4:00 am
Location: cph

Post by Lars Iversen » Thu Mar 22, 2007 11:59 am

Thanks for the fast answer.

I just realized that I do my charts in the main thread and then I have a seperate thread that writes to word asyncronously:o( Sorry that I brought clipboard up. I can't use that.

So in short I have a list of objects that my main thread writes to. My write-to-word thread then removes the items from that list one at a time.
So I really need to be able to store an exported chart in and object variable and then be able to put it to word from the opbject variable.
I could of course just store a path to where I have saved the picture on disk end then my write-to-word thread could get the file from disk and put it into word. I just don't think that that is very elegant.
Do you have a better solution for me?

Thanks
Lars Iversen

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

Post by Narcís » Thu Mar 22, 2007 12:05 pm

Hi Lars,

Yes, TeeChart can also be exported to a MemoryStream. For all TeeChart exporting options please read Tutorial 12 - Exporting and Importing Charts. You'll find tutorials on TeeChart's program group.
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