Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing arrays to Excel variant properties
Message
De
18/03/2004 10:23:06
 
 
À
18/03/2004 09:36:37
Norbert Kustra
SunSoft plus spol. s r.o.
Dolny Kubin, Slovaquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00887487
Message ID:
00887503
Vues:
30
Norbert,

Try something like this:
#DEFINE cnExternalData 2
DIMENSION laSD[2]
lcHomeDir = JustPath(tcDbfFile)
laSD[1]=[DSN=Visual FoxPro Tables;UID=;PWD=;SourceDB=] + lcHomeDir +;
        [;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=MACHINE;]+;
        [Null=Yes;Deleted=Yes;]
laSD[2]=[SELECT * FROM ] + [`]+ tcDbfFile + [` PivotData]

loPivotTable=oXLS.ActiveSheet.PivotTableWizard(cnExternalData, @laSD,loDestination, "Analysis", .T., .T.)
HTH

>Hi,
>can anybody help me. I am not able to pass array to Excel variant property:
>1. I can read Excel variant property and I get array sd
> sd=oXL.ActiveSheet.PivotTables(1).SourceData
>2. But I cannot set this property from VFP, even the property is read-write (I can set it from Excel VBA)
> oXL.ActiveSheet.PivotTables(1).SourceData=sd
>
>Thanks
> Norbert Kustra
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform