>I created a chart with Microsoft Graph, and I stored it in a General field in a cursor. The chart looks fine, but is there some way I can programmatically copy the chart to the clipboard?
>
>I need to get the chart into WordPerfect 8. Once the chart is in the clipboard, I can use OLE Automation in WordPerfect to paste it into the document. If I cannot cut and paste, can I use OLE Automation for Microsoft Graph?
>
>Thanks!
Timothy,
Yes you can copy and use OLEAutomation with graph. Below code is for MSGraph8 :
use mycursor
oform = createobject("form")
with oForm
.addobject("olbControl","Oleboundcontrol")
.height = 420
.width = 620
with .olbControl
.top = 0
.left = 400
.height = 400
.width = 600
.controlsource = "mycursor.mygenfield"
.ChartArea.copy()
endwith
.release
endwith
Cetin