When copying a chart to the clipbord as a meta-file!

TeeChart for ActiveX, COM and ASP
Post Reply
Seth
Newbie
Newbie
Posts: 25
Joined: Mon Aug 02, 2004 4:00 am

When copying a chart to the clipbord as a meta-file!

Post by Seth » Fri Aug 13, 2004 6:43 am

Hello :) ,
I am trying to copy the chart object to the clipborad as a meta file for printing.
Here, I used the CopyToClipboardMetaFile() method to do so.

Now the question!
Image
Like you can see above, there's dotted line in the original copy.
When you copy this object to the clipbord as a meta file,
Image
the dotted line changed to the sold line.
When I print this, this solid line printed as shown above, not as dotted line.
I would appreciate it, if you would tell me how to fix this problem.
Thanks.
Last edited by Seth on Mon Aug 16, 2004 10:59 am, edited 1 time in total.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Aug 13, 2004 11:44 am

Hi Seth,

which TeeChart Pro version are you using ?
It works fine here using the latest v6.05 and the following code :
TChart1.Export.CopyToClipboardMetafile (true)

Seth
Newbie
Newbie
Posts: 25
Joined: Mon Aug 02, 2004 4:00 am

Post by Seth » Sat Aug 14, 2004 2:45 am

Hello,
we just renewed the TeeChartPro license, hence has the lastest version. We reconfirmed the problem since your one worked fine. And, you were right. It worked OK here as well but there was one condition followed.
The clipboard window has to be in the right size!
For example, as you can see above, the width of window is wider than the original copy. But, if you resize this window to the right width, the solid line comes back to dotted line. In case of JPEG or BMP, the clipboard window size was no matter.
Thanks.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Aug 16, 2004 10:02 am

Hi --
For example, as you can see above, the width of window is wider than the original copy. But, if you resize this window to the right width, the solid line comes back to dotted line. In case of JPEG or BMP, the clipboard window size was no matter.
I can reproduce this behaviour using clipbrd.exe but when pasting the image into a Word document and resizing everything seems OK.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Seth
Newbie
Newbie
Posts: 25
Joined: Mon Aug 02, 2004 4:00 am

Post by Seth » Mon Aug 16, 2004 11:09 am

Hello,
what is the name of method I can use to copy the object onto the word? This problem came up when using CopyToClipboardMetafile (true).
If you can reproduce this behaviour there as well, can't you make a patch to correct this?
Many thanks.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Aug 16, 2004 12:30 pm

Hi Seth,
what is the name of method I can use to copy the object onto the word? This problem came up when using CopyToClipboardMetafile (true).
I used the same method and then simply opened a Word Document and used Control-V to paste in the TeeChart metafile.
If you can reproduce this behaviour there as well, can't you make a patch to correct this?
The problem here is that two different Microsoft containers (Word and clipbrd.exe) seem to treat the TeeChart metafile differently, pointing to a problem with one of the containers rather than to a problem with the TeeChart metafile itself.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply