Page 1 of 1
When copying a chart to the clipbord as a meta-file!
Posted: Fri Aug 13, 2004 6:43 am
by 9083345
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!
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,
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.
Posted: Fri Aug 13, 2004 11:44 am
by Pep
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)
Posted: Sat Aug 14, 2004 2:45 am
by 9083345
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.
Posted: Mon Aug 16, 2004 10:02 am
by Chris
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.
Posted: Mon Aug 16, 2004 11:09 am
by 9083345
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.
Posted: Mon Aug 16, 2004 12:30 pm
by Chris
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.