Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSGraph Export
Message
 
To
05/11/2003 11:33:30
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00846572
Message ID:
00846575
Views:
22
Try something like this:

use (your_table)
go (record_you wish)

keyboard '{Ctrl+C}{Ctrl+W}' plain clear
modi general (Field_name) && contents is in the Clipboard now
*open Excel
oExcel=CREATEOBJECT("Excel.Application")
WITH oExcel
.DisplayAlerts = .f.
.Workbooks.add()
.ActiveSheet.PasteSpecial("Picture (Enhanced Metafile)",.f.,.f.)
.ActiveWorkbook.SaveAs("C:\Book2.xls")
ENDWITH
oExcel.Quit
oExcel=.null.
RELEASE oExcel

>Hi,
>
>I am using a cursor with a general field to display graphs with MSGraph, is there any way i can copy the generated graph to a file/clipboard ?
>I tried the export method, from msgraph, but it returns a error !
>
>thx
>
>Guillaume
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform