Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass an array to MS Excel with automation
Message
De
03/09/2002 16:00:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00696285
Message ID:
00696375
Vues:
13
Thanks, Yuri.

I have used that before, but I have a lot of text data that throws off the vfp-to-clipboard/paste method.

Clipboard data is just text, delimited by either spaces or tabs. I can't guarantee that my fields won't have tabs embedded, destroying the ability to parse correctly when pasting. I saw a method for copying from an ADO recordset that may work, but then I'd have to create one of those.

>_VFP.Datatoclip(,,3)
>
>ObjExcel= CREATEOBJECT("Excel.Application")
>ObjExcel.DisplayAlerts = .f.
>ObjExcel.Workbooks.add()
>ObjExcel.Range("a1").Select
>ObjExcel.ActiveSheet.Paste()
>.....
Jim Newsom
IT Director, ICG Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform