fortesinformatica / jasper-rails Goto Github PK
View Code? Open in Web Editor NEWJasperReports on Rails
License: MIT License
JasperReports on Rails
License: MIT License
Ola, pessoal. É possível salvar o relatório em PDF em um diretório especifico ao invés de exibi-lo?
[]'s
Stclara.
Hello There,
When a pdf is generated from jasper-rails it dont respect the font sizes setted over iReport.
Is there a solution?
Thank you! ;)
I have a little mistake concerning the call of Jasper in a controller.
I need a complete xml datasource with association.
Do you know why ? because I am not a ruby/rails jedy.
jasperreports already have the feature, is "just" the effort to use it.
New to JasperReports, but I do know how it works in theory. I'm also well versed in Java apps in general.
I created a report with iReports, but it only had xpath2. I left that in there, and when I try to generate a report I get:
Error at line 8 char 16: No query executer factory registered for the 'xpath2' language.
I then edited the jrxml file and reloaded, and got the following:
Error at line 8 char 16: No query executer factory registered for the 'xpath' language.
From googling around on the Jasper forums, we seem to need a jasperreports.properties somewhere, but I can't see where we would put it.
After adding jasper-rails to our Gemfile, I've started seeing this warning messages:
/var/lib/jenkins/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.6/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant PDF
Hi folks!
After a couple of months without having any time for jasper-rails, I'll start now to work on the next version. The main goal is to have a more flexible design where we can easily add new features. The first feature I have in mind is to provide an easy way to generate the reports in different formats, like ODT, SWF, XLS or whatever format JasperReports supports. It's a nice feature and it's really easy to do.
I've just created a mailing list for the project where I'll discuss the next features and fixes. So if anyone is willing to contribute or give any suggestions, feel free to join.
Cheers!
Marlus
if you have a lot of parameters to pass to to the report(like what filter are used to create the report, etc), would be a lot easier to just pass it as a single hashmap inside one parameter($P{filters}
for example) instead of creating tons of different parameters.
Using rails 3.2.6 and jasperreports/ireport 4.6.0 I'm getting this error message.
SEVERE: Parse Error at line 2 column 459: cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.
full stack trace here: https://gist.github.com/2925685
O erro "cannot parse Cookie header" ocorre quando executo a gem jasper-rails no rails 3.1.5. Repeti o mesmo problema na app jasper-rails-demo atualizando o rails da 3.1.3 para 3.1.5.
Is it possible to generate and Attach a PDF generated by jasper-rails on an e-mail message using ActionMailer?
Hello There.
Does someone here know how to load a new font like Times New Roman into jasper-rails instead of using Helvetica?
Thank you :)
Hi
I try to use jasper for a new report in my rails app but a I have wickedpdf too.
Try this
respond_to :xml, :pdf
def report
@company_business_units = Company::BusinessUnit.all
respond_with @company_business_units
end
but the controller try to use wicked and return an exception "Template is missing", how I can specify the use of jasper??
Adding this files in config could be a good enhancement and will avoid this, for example :
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Times New Roman' is not available to the JVM. See the Javadoc for more details.
net.sf.jasperreports.awt.ignore.missing.font = true
The plugin is not working properly with Apacha + Passenger. I always get the error "Cant Create Java VM" from Passenger when i run my App in Production Environment.
Server Setup is:
Debian 6.0
Java JDK 1.7.0
Apache2 + Passenger
Ruby 1.9.2
Java Home and PATH are correctly set.
it would be super cool if we have a version of the gem to run with jruby(that uses java itself to do the integration instead of using RJB). that way, we can have the same code running in jruby as well.
something like ffi, json, nokogiri and others already have.
document (in the readme?) how to change the locale/date format, etc.
related https://github.com/fortesinformatica/jasper-rails/blob/master/lib/jasper-rails.rb#L67
Hi,
I have a simple demo (works fine on my local mac/ubunut machines)
I am trying to get it running on Engine Yard (Gentoo).
Which runs
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (Gentoo build 1.6.0_24-b24)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Weird issue the app server starts up fine no reported errors, I can hit my route and it seems to get up to Exporting the Jasper report.
However the request simply timeout.No errors in the log.
Wondering if you have seen this before?
I have tried to test the demo app of jasper-rails. It works very good. I tried to open the index.jrxml. I tried to prevew the report the the records is null? Do I need to setup the data source? or did i miss something. I want to design report and used the query.
Hi,
I wish to upgrade jasper-rails-demo to rails 4.2.4, but running
$rails server
bin/rails:6: warning: already initialized constant APP_PATH
/home/ubuntu/workspace/jsp/bin/rails:6: warning: previous definition of APP_PATH was here
Usage: rails COMMAND [ARGS]
If I delete gem 'jasper-rails' from gemfiles, server starts.
Please send me any sugestions.
Hello, I need to save pdf file on server to be merged with another pdf.
How to save report on server?
Boa tarde, galera. Existe alguma configuração para que funcione com rvm + passenger + nginx em modo de produção? Quando chamo o relatório fica aguardando, mas não gera e também não aparece erro no log. Com mongrel funciona.
[]'s
Stclara.
when you create a new report and forget to add <queryString>
, jasper-rails fails silently. it would be cool at least to output something.
Please let me know the license of this project.
I found this error when installing the gem on rails 4 but it works fine on rails 3
bin/rake Error:[rake --tasks] /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:274:in 'require': cannot load such file -- action_controller/metal/responder (LoadError) from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:274:in 'block in require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:240:in 'load_dependency' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:274:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:26:in '<top (required)>' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in 'block (2 levels) in require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in 'each' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in 'block in require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in 'each' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler.rb:134:in 'require' from /config/application.rb:30:in '<top (required)>' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:82:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:82:in 'preload' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:143:in 'serve' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:131:in 'block in run' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:125:in 'loop' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:125:in 'run' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in '<top (required)>' from /home/mostafa/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require' from /home/mostafa/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require' from -e:1:in '
' Error:[rake --prereqs] /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:274:in 'require': cannot load such file -- action_controller/metal/responder (LoadError) from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:274:in 'block in require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:240:in 'load_dependency' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/activesupport-4.2.1.rc4/lib/active_support/dependencies.rb:274:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:26:in '<top (required)>' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:76:in 'block (2 levels) in require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in 'each' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:72:in 'block in require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in 'each' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler/runtime.rb:61:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/bundler-1.9.4/lib/bundler.rb:134:in 'require' from config/application.rb:30:in '<top (required)>' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:82:in 'require' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:82:in 'preload' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:143:in 'serve' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:131:in 'block in run' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:125:in 'loop' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application.rb:125:in 'run' from /home/mostafa/.rvm/gems/ruby-2.2.1@global/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in '<top (required)>' from /home/mostafa/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require' from /home/mostafa/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require' from -e:1:in ''I'm on mac El Cap with Java 8 trying to run the jasper-rails but getting an error on startup. I have JAVA_HOME set to /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
/Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:47:in `load': cannot load such file -- dl (LoadError)
from /Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:47:in `<module:JasperRails>'
from /Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:32:in `<top (required)>'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
from /Users/dtrce/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
from /Users/dtrce/Dropbox/dev/TitleLoanApp/config/application.rb:7:in `<top (required)>'
from /Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/railties-3.2.11/lib/rails/commands.rb:53:in `require'
from /Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/railties-3.2.11/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /Users/dtrce/.rbenv/versions/2.1.2/gemsets/loanapp/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Methods in NumberHelper stop working when I set gem 'jasper-rails' in my Gemfile.
The report works and everything but when I render something like:
<%=number_to_currency(123.25)%> it returns $0.00
I'm using Ruby 2.0.0 on Rails 4.0.0
Pessoal, qual o procedimento para gerar o xpath? Como faço para acrescentar os fields no ireport? Gero tudo ok no relatório, só que os campos aparecem como null.
[]'s
Stclara.
As amazing as this project is, it would be made even more amazing if it supported doing subreports.
I may start using jasper-rails for a large project that will have dozens of reports. Many of them will require sub-reports. Does anyone else have any use for this feature?
Hello.
I have a plugin for Redmine printing documents via Jasper-Rails.
It works fine if running in test with WEBrick, it's completely stuck when it run on unicorn+nginx or unicorn standalone.
No error messages in production.log, Unicorn simply kill the process, stderr: "worker=2 PID:13127 timeout (31s > 30s), killing"
Any idea?
Como trabalhar com master_detail com o jasper-rails?
Salve, pessoal. Como passar a data created_at (timestamp) do postgres para o ireport? Sempre que gero o relatório retorna null.
[]'s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.