is there any Ruby or Rails reporting tools based on customizable templates?

二次信任 提交于 2019-12-06 01:35:22

问题


I am looking for a report generator done in ruby or rails which allow user to define a template first then fetch the data into the template.

I have been looking through "The Ruby Box: reporting section" (https://www.ruby-toolbox.com/categories/reporting.html)

There are two reporting tools are similar to what I am look for:

Thin Reports: It is really good. You download a template editor then you define your own report template then by combine the thinreports gems you can get SVG or PDF report out of your application.

ODF Report: It uses ODF file as template which can be edit by OpenOffice and MS Word 2010. Then You get your report out.

However, both of them not have the ability to draw charts. Does anyone know any reporting tools does similar job to these two but also be able to draw charts within the report?

The minimum requirements are:

  1. Able to create customizable templates. eg. design layout, set font size, color, embed images etc.

  2. Able to draw tables, charts.

  3. Template could be ODT or excel or tif or any other common file.

Thanks


回答1:


PeterPeng.

The following is message by the machine translation, so I'm sorry if you may be unable to understand...

I am developer of ThinReports.

In the newest ThinReports, it is possible to embed Graf as a picture. The following is a sample using GoogleChart API.

ThinReports Example: Embed a graph using the GoogleChartAPI

In addition, using such images to create a Gruff, can be embedded as follows:

page.item(:image_block).src('/path/to/any.png')
page.item(:image_block).src(<Image Data>)

I hope helpful.



来源:https://stackoverflow.com/questions/8843325/is-there-any-ruby-or-rails-reporting-tools-based-on-customizable-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!