Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement