Unsupported clipboard format
Posted: Wed Oct 20, 2004 10:41 am
If I do this (bitmap):
TrdChart(FChartList.Items[FCurrentChartIndex]).CopyToClipboardBitmap;
bm := TBitmap.Create;
try
bm.LoadFromClipboardFormat(CF_BITMAP, ClipBoard.GetAsHandle(CF_BITMAP), 0);
......
Then it works fine. But if I try a metafile I get "Unsupported clipboard format".
TrdChart(FChartList.Items[FCurrentChartIndex]).CopyToClipboardMetafile(true);
mf := TMetaFile.Create;
try
mf.LoadFromClipboardFormat(CF_ENHMETAFILE, ClipBoard.GetAsHandle(CF_ENHMETAFILE), 0);
Any idea what's going on (D6, TChart Pro 7)?
Thanks, Bob
TrdChart(FChartList.Items[FCurrentChartIndex]).CopyToClipboardBitmap;
bm := TBitmap.Create;
try
bm.LoadFromClipboardFormat(CF_BITMAP, ClipBoard.GetAsHandle(CF_BITMAP), 0);
......
Then it works fine. But if I try a metafile I get "Unsupported clipboard format".
TrdChart(FChartList.Items[FCurrentChartIndex]).CopyToClipboardMetafile(true);
mf := TMetaFile.Create;
try
mf.LoadFromClipboardFormat(CF_ENHMETAFILE, ClipBoard.GetAsHandle(CF_ENHMETAFILE), 0);
Any idea what's going on (D6, TChart Pro 7)?
Thanks, Bob