Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to cut and paste a General field
Message
From
12/08/1998 04:08:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00125788
Message ID:
00125887
Views:
13
>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"    && Embedded MSGraph
		.ChartArea.copy()                         && Copy to clipboard
	endwith	
	.release
endwith	
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform