Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Report writing

by Jonathan (Curate)
on Feb 15, 2001 at 13:47 UTC ( [id://58590]=perlquestion: print w/replies, xml ) Need Help??

Jonathan has asked for the wisdom of the Perl Monks concerning the following question:

I've got to generate some fairly complex reports with multiple break and aggregation points.

Searching through CPAN the module Data::Reporter::RepFormat appears to be my best bet.
However, the modules documentation seems rather laconic - possibly incomplete.
Has anyone any experience of this module? - If so I'd be grateful to hear their opinion of it.

Failing that can anyone suggest any alternative modules? (I don't think Text::Template would prove at all easy to use for these reports)

If you think I'm asking for the moon on a stick. I'd have agree.

Replies are listed 'Best First'.
Re: Report writing
by OeufMayo (Curate) on Feb 15, 2001 at 14:26 UTC
      Ta for that OeufMayo I've used formats for reports but they become very unwieldy with complicated wide reports with multiple variable blocks and sub totals etc.
      I think Data::Reporter::RepFormat is a reasonable choice, but - if only it worked :-)
      the following the following code falls in a heap
      #!/usr/local/bin/perl -w use strict; use Data::Reporter::RepFormat; my $sheet = new Data::Reporter::RepFormat(124,10) or die "Wouldn't let me"; $sheet->Move(120,0); $sheet->Print('TEST'); $sheet->MVPrint(0,1,'Next line at start'); $sheet->Move(0,2); print "Report has ", $sheet->Nlines()," lines\n"; $sheet->Out();
      Falls over in a horrible heap with
      Report has 3 lines Can't locate object method "Out" via package "RepFormatPtr" at /home/jonathan/Reportformat.test line 12.
      From my reading of the pod I'd expect the above to work and print the report to STDOUT. Doh!
Re: Report writing
by Anonymous Monk on Feb 15, 2001 at 14:13 UTC
    You might want to check out Template Toolkit which I've found to be very powerful and flexible.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-03-28 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found