Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default JavaScript & WorkBook.PivotCaches

[Environment]
Microsoft Excel 2007 SP2
Windows Vista SP2
IE 8

[Description of Problem]
I've been unable to create a pivot table in client-side JavaScript. In the
VS 2005 debugger the WorkBook.PivotCaches object doesn't even show up, and I
get the standard "object doesn't support this property or method" error
message when trying to access it.

[Example]

this.WorkBook.PivotCaches.Add(xlDatabase,
sPivotSourceName).CreatePivotTable("", sPivotTableName);

The same code works in vbscript:

this.WorkBook.PivotCaches.Add(xlDatabase, sPivotSourceName).CreatePivotTable
"", sPivotTableName

I could [not] find an example where PivotCaches could be accessed in
JavaScript, and I found one other person who had the same issue.

Is this a known issue? If so, does anyone know why it doesn't work?

Thanks

Regards,

Michael Cessna
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default JavaScript & WorkBook.PivotCaches

I've noe done the type of thing you are doing, but in native Excel, I've
always used

ThisWorkbook not This.Workbook

HTH,

Barb Reinhardt



"mcessna" wrote:

[Environment]
Microsoft Excel 2007 SP2
Windows Vista SP2
IE 8

[Description of Problem]
I've been unable to create a pivot table in client-side JavaScript. In the
VS 2005 debugger the WorkBook.PivotCaches object doesn't even show up, and I
get the standard "object doesn't support this property or method" error
message when trying to access it.

[Example]

this.WorkBook.PivotCaches.Add(xlDatabase,
sPivotSourceName).CreatePivotTable("", sPivotTableName);

The same code works in vbscript:

this.WorkBook.PivotCaches.Add(xlDatabase, sPivotSourceName).CreatePivotTable
"", sPivotTableName

I could [not] find an example where PivotCaches could be accessed in
JavaScript, and I found one other person who had the same issue.

Is this a known issue? If so, does anyone know why it doesn't work?

Thanks

Regards,

Michael Cessna

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PivotCaches.add Difficulties Fid[_2_] Excel Programming 0 April 25th 08 03:11 AM
Pivotcaches add method TomD Excel Programming 1 March 10th 06 08:58 AM
PivotCaches.Add jacob Excel Programming 2 February 5th 04 08:58 AM
change commandtext in pivotcaches patrick Excel Programming 3 September 2nd 03 03:06 PM


All times are GMT +1. The time now is 10:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"