Using Export.CopyToClipboardMetafile (True)

TeeChart for ActiveX, COM and ASP
Post Reply
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 » Wed Jan 07, 2004 7:42 am

Hi --
The Export.CopyToClipboardMetafile (True) works fine until I use brushstyles in my area chart. The chart builds correctly but passes in the clipboard without brushstyles.
The following TeeChart Pro AXv6.0.0.4 code seems to work correctly here:

Code: Select all

Private Sub Command1_Click()
With TChart1
    .Export.CopyToClipboardMetafile True
End With
End Sub

Private Sub Form_Load()
With TChart1
    .AddSeries scArea
    .Series(0).FillSampleValues 10
    .Series(0).asArea.AreaBrush = bsBDiagonal
    .Series(0).asArea.Brush.Style = bsBackDiagSmall
End With
End Sub
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