[Rails] Re: Jasper reports and iReport
On Friday, February 8, 2008 11:57:33 PM UTC+5:30, Jon Garvin wrote:
Flex, thanks a **ton** for your assistance.--
My report preview in iReport is now working great even with dyanmic
data (on our token windows xp box). I've got the "hello world" text
in the "page header" "banner" and a couple dynamic fields in the
"detail" banner. the "build/execute with active connection" gives me
exactly what I would expect for the page heard and the dynamic data.
However, when I put the compiled .jasper file in app/reports I still
get a blank pdf.
There are some differences in what I put in the app/jasper/lib
directory compared to your instructions.
a) you mention a jdt-compiler.jar, but my download of iReport 2.0.4
contained a jdt-compiler-3.1.1.jar. At first, I figured that was just
a typo on your part. Later I also found a plain jdt-compiler.jar in
the jasperreports_on_rails archive and tried that, too. Neither
helped.
b) you mention a log4j-1.2.13.jar. However, my 2.0.4 iReport only
contains a log4j-1.2.8 and 1.2.9 jars. I put both of those in the lib
directory but that didn't work.then I found the log4j-1.2.13.jar in
the jasperreports_on_rails archive and replaced the other two with
it. Still blank.
So, right now my lib dir has all the same 11 .jar files you mention in
your instructions (and no others), the only exceptions being that jdt-
compiler.jar and log4j-1.2.13.jar came from the jasperreports_on_rails
download instead of the latest version of iReport.
Still getting a blank pdf file though. any more ideas?
On Feb 8, 10:01 am, FlexRails <her...@intermatics.be> wrote:
> 1) In which banner have you put your static 'Hello world' text,
> because when I put it in the title banner, or in detail, and I try to
> run it from within iReport I get a message 'The document has no
> pages.' The compilation however succeeds. In that case of course there
> will be no output when you call the report from rails.
> If you really got a report preview in iReport but no output in rails
> you might look for a file called XmlJasperInterface.log somewhere in
> your rails application and see if you find some more information
> there. I had the same problem untill I copied the iReport lib files to
> my rails/app/jasper/lib directory. So you might double check if you
> have missed any of the lib files.
>
> 2) I'm running on a Mac and there it works fine. I suppose you could
> develop your reports on a platform where iReport runs stable, and then
> still deploy to Ubuntu.
>
> Is there anyone who was successfull using my description, otherwise I
> will have to check my description for possible errors ?
>
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/VSpWj_DsFO4J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home