Stu
unread,Aug 4, 2009, 5:50:41 PM8/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby Reports
Hi,
For a series of reports I'm creating I'm using a separate report
controller, Report class and formatter for the report stages derived
from Ruport::Formatter::Text. The source of the report data is
ActiveRecord and AAR, but all this is used outside of Rails.
Some of the formatter stages need to write descriptive text and a few
statistics to output, but in other stages I'd like to have a default
"pretty" text table generated, something like "output << mytable.to_s"
in the stage. All the examples I've seen do this by manually sending
the table to output row-by-row etc.
Is it possible to mix stage formatting with pretty table output this
way? Even better if I could indent the whole table as well, but I can
get by without that.
Any advice much appreciated,
Stu