ThinReports is Open Source Reporting Solution for Ruby. And it provides you these tools:
ThinReports Editor (GUI Designer)
ThinReports Generator (Report Generator for Ruby)
You can see more details:
Getting started with ThinReports Generator can be as simple as:
require 'thinreports' report = ThinReports::Report.new :layout => 'report.tlf' report.start_new_page do item(:title).value('ThinReports') end # :pdf is used as default when the type argument of a #generate_file is omitted. report.generate_file('report.pdf')
Or can be as:
ThinReports::Report.generate_file(:pdf, 'report.pdf', :layout => 'report.tlf') do start_new_page page.item(:title).value('ThinReports') start_new_page page.item(:title).value('ThinReports').style(:color, '#ff0000') end
prawn = 0.12.0
json >= 1.4.6 (Only for less than Ruby 1.9)
We tested on Ruby 1.8.7 and 1.9.2. But we recommend 1.9.2+.
ThinReports includes the following fonts.
IPAFonts: Copyright© 2003-2011 Information-technology Promotion Agency, Japan. Please see the lincense file IPA_Font_License_Agreement_v1.0.txt.
(The MIT License)
Copyright © 2010-2011 Matsukei Co.,Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.