wpivotto / vraptor-jasperreport Goto Github PK
View Code? Open in Web Editor NEWA jasper report plugin for vraptor
License: Other
A jasper report plugin for vraptor
License: Other
Could you release a new version of the plugin on Maven Central with this fix included.
private JasperPrint printReport(JasperReport jr, Map<String, Object> parameters, JRDataSource datasource) throws JRException {
JasperPrint print = null;
final Object dsConn = parameters.get(Connection.class.getName());
if (dsConn != null && dsConn instanceof Connection) {
print = JasperFillManager.fillReport(jr, parameters, (Connection) dsConn);
} else {
print = JasperFillManager.fillReport(jr, parameters, datasource);
}
return print;
}
Quando o relatorio usa XML Document como fonte de dados, eu passo ele como parametro e nao como datasource, assim eu precisaria mudar a implementação do método acima, ficando assim:
private JasperPrint printReport(JasperReport jr, Map<String, Object> parameters, JRDataSource datasource) throws JRException {
JasperPrint print = null;
final Object dsConn = parameters.get(Connection.class.getName());
if (dsConn != null && dsConn instanceof Connection) {
print = JasperFillManager.fillReport(jr, parameters, (Connection) dsConn);
} else if (datasource != null){
print = JasperFillManager.fillReport(jr, parameters, datasource);
} else {
print = JasperFillManager.fillReport(jr, parameters);
}
return print;
}
É interessante colocar essa variação no plugin? Ou tem como eu sobrescrever este comportamento.
implement an interceptor to force the browser to clear cache
http://www.guj.com.br/java/234168-tomcat-e-vraptor-nao-permite-download-de-pdf-usando-https
Upgrade plugin to use with Vraptor4
Could you release a new version of the plugin on Maven Central? Maybe the version 1.0.2 with this fix included.
something like this,
public Download reports() {
ZipDownload download = new ZipDownload();
download.add(new Report1(), CSV())
.add(new Report2(), PDF())
.add(new Readme(), TXT());
return download;
}
java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/RichTextString at org.primefaces.component.export.ExporterFactory.getExporterForType
Tenho uma necessidade que é criar um template dinamicamente, baseado em um conjunto de dados que eu não conheço durante a compilação.
Exemplo:
O que eu preciso, é montar este ".jasper" dinamicamente, para não ter que montar um template para cada tela.
Isso é possível de ser feito com o plugin?
Grato.
My report will get data directly from database using a sql query. I don't have any data to pass from my app to the report. I created my report class and returned null in the getData method. I also passed the parameter REPORT_CONNECTION with my connection.
Anyway the report is always blank. Jasper says in the log that there is no data. Is there something else I need to do to use a connection to generate data?
When the HTML report is rendered, images are not displaying
Several reports can be exported together to form a single resulting document.
new BatchReportDownload(pdf()).add(report1).add(report2);
Estou obtendo o seguinte erro ao gerar o relatório:
java.util.ArrayList; local class incompatible:
Provavelmente porque o plugin está usando ArrayList do java 1.6 e eu estou usando o Java 1.8
É possível atualizar a versão do java? Se for, eu posso tentar.
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.