Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Creating pivot table

Reply
Thread Tools

Creating pivot table

 
 
myperl
Guest
Posts: n/a
 
      02-20-2007
Hi,

I am bringing the data to an excel sheet and showing it as a report
through perl. Now my requirement is to produce a pivot table on the
same data and show it.I am using win32::OLE in my perl code to bring
the sheet. If some have an URL or code example will be great.


Thanks

 
Reply With Quote
 
 
 
 
Thrill5
Guest
Posts: n/a
 
      02-20-2007
"myperl" <> wrote in message
news: oups.com...
> Hi,
>
> I am bringing the data to an excel sheet and showing it as a report
> through perl. Now my requirement is to produce a pivot table on the
> same data and show it.I am using win32::OLE in my perl code to bring
> the sheet. If some have an URL or code example will be great.
>
>
> Thanks
>


As far as I know you can't create a pivot table in Excel using OLE. This is
an Excel problem, not a Perl problem.

Scott


 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      02-20-2007
"Thrill5" <> wrote in
news:fu-:

> "myperl" <> wrote in message
> news: oups.com...
>> Hi,
>>
>> I am bringing the data to an excel sheet and showing it as a report
>> through perl. Now my requirement is to produce a pivot table on the
>> same data and show it.I am using win32::OLE in my perl code to bring
>> the sheet. If some have an URL or code example will be great.

....
>
> As far as I know you can't create a pivot table in Excel using OLE.
> This is an Excel problem, not a Perl problem.


I don't have time to try this right now but it looks possible (at least in
Excel 2003).

To the OP, open Excel, go to Tools -> Macro -> Visual Basic Editor. Press
F2 to get the Object Browser. Note the classes whose names begin with
Pivot.

See http://www.unur.com/comp/ppp/perl-wi...excel-ex1.html for an
example of how to get an Excel object via OLE. Once you have that, it looks
like a matter of figuring out the right order of calls. Give it a shot, and
report any problems you encounter.

Sinan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table control =?Utf-8?B?UG9udGlNYXg=?= ASP .Net 2 06-15-2004 08:32 PM
Re: Pivot table control Phil Winstanley [Microsoft MVP ASP.NET] ASP .Net 2 06-15-2004 04:26 PM
Re: Pivot table control Phil Winstanley [Microsoft MVP ASP.NET] ASP .Net 0 06-15-2004 11:29 AM
Create Pivot table =?Utf-8?B?QWpheQ==?= ASP .Net 4 02-16-2004 03:38 PM
MS Excel - How can I summarize a table? Will Pivot Table Reports do this for me? hugh jass Computer Support 3 09-10-2003 11:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57