Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Creating Pivot tables from Perl

by marto (Cardinal)
on Nov 08, 2005 at 20:11 UTC ( [id://506869]=note: print w/replies, xml ) Need Help??


in reply to Creating Pivot tables from Perl

narashima,

Not a complete Perl soultion but..
Could you not have your pivot table in an Excel sheet**, then append the output from your Perl script to the file?

**If you pre define a piviot table you should be able to update it when the excel file is next opened using a VBS (within the Excel file, NOT your Perl script) like:
Sub Auto_Open() Application.OnSheetActivate = "UpdateIt" End Sub Sub UpdateIt() Dim iP As Integer Application.DisplayAlerts = False For iP = 1 To ActiveSheet.PivotTables.Count ActiveSheet.PivotTables(iP).RefreshTable Next Application.DisplayAlerts = True End Sub

Please excuse the fact that this is not Perl code :(
Are you currently able to write data to an Excel file? Cpan has many modules regards Excel writting.

Hope this helps.

Martin

Replies are listed 'Best First'.
Re^2: Creating Pivot tables from Perl
by narashima (Beadle) on Nov 08, 2005 at 20:39 UTC
    Thanks Martin. This non-perl intensive solution sure works for me :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://506869]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found