Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays to Excel variant properties
Message
From
18/03/2004 10:23:06
 
 
To
18/03/2004 09:36:37
Norbert Kustra
SunSoft plus spol. s r.o.
Dolny Kubin, Slovakia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00887487
Message ID:
00887503
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform