ruport

Display math powers using Ruby PDF::Writer or Ruport?

Is there an easy way to display powers in PDF generated using the Ruby PDF::Writer library? I realize that I can just print the exponent a bit higher than the base number, however I thought maybe there is some easier way to do this... such as a markup tag of some sort. Basically, I want to cleanly display x**-2. Thanks in advance! ...

How to store ruport table data object in a database?

I intend to store a nightly build of report data in a DB and then use formatters when a user requests for a report in real-time. A few clues... The Ruport::Data::Table object - that contains the data - is a collection of Ruport::Data::Record objects, accessible via the 'data' attribute i.e. Ruport::Data::Table object *=> Ruport::Data:...

How to Group by Day with Ruport / Ruby on Rails?

I'm trying to evaluate Ruport for use in my Rails app, but am not sure how to take a series of records with date/time stamps and group them via Ruport's grouping functions. I'm open to other/better methods to do this same grouping if Ruport doesn't make sense. ...

Ruport vs. Prawn considering long-term use

I want to add reporting capabilities to my Rails application and I'm struggling quite some time now on which reporting software to use to create my PDF documents. Until now I'm pretty sure that either Ruport or Prawn are the best way to go. After experimenting with both of them I find that they both are very powerful and quite universa...

Text Formatting in Ruby (For Packing Slips)

I need to generate formatted text packing slips for a Ruby on Rails project I'm working on. I'm considering using Ruport or just formatting it myself in a string and outputting it to text. The only challenge is justifying all of the output appropriately. It needs to look something like this, always aligned properly. Any recommendations? ...

Ruby on Rails Report Generator

Hi There. Is there a way that I can produce a report in RoR without using Ruport or any other report generator rails plugin? Thanks in advance ...

Resolving a class name conflict in a Rails application

I have been building a Rails application that performs accounting functionality. As part of this, I have a model with the class name Transaction. So far so good, I have been building this functionality for a month or so, and everything is working as expected. Until now... I have just discovered some older reporting functionality that w...

How to generate a page header on each PDF page with Ruport?

I am generating a PDF report with a basic table, and page header on each page. Ruport mentions the ability to generate page headers by using top_margin and its extenstion with the all_pages command (ruportbook.com/printable_documents.html in the section labeled Generating Page Headers) However when I use the example in my existing cod...

Underline in Ruby Report

Hey all, I'm trying a very simple thing here in Ruport but I don't seem able to get it working. All I want is underline a part of a text. I already have the substring that I want to underline, because i thought <u></u> would do the trick (<i> and <b> work) Anybody got a working solution for this? Thanks! ...