jasper-plugin

struts2 jaspers shows FileNotFoundException

流过昼夜 提交于 2019-12-12 06:47:54
问题 I am trying to integrate jasper with struts2 by using the following tutorials. But the jasper compiler not able to acess the file and my code is given below ServletContext context=ServletActionContext.getServletContext(); URL is = context.getResource("/jasper/our_jasper_template.jrxml"); String path=is.getPath(); String jasper = is.getPath().replace("our_jasper_template.jrxml", "our_compiled_template.jasper"); System.out.println(path); //here displays the path JasperCompileManager

jasperphp error passing parameters

你离开我真会死。 提交于 2019-12-09 04:11:30
In a jasper report I have a sql sentence like this: SELECT * FROM table $P!{my_where} In my php program, I'm calling the report this way: JasperPHP::process( base_path() . '/app/reports/report.jasper', false, array("pdf"), array("my_where" => "WHERE field = value"), \Config::get('database.connections.mysql') )->execute(); Then, this is the error message: Wrong report param format! Doing it the simple way works, I mean: In the report: SELECT * FROM table WHERE $P!{field} = $P{value} In PHP: JasperPHP::process( base_path() . '/app/reports/report.jasper', false, array("pdf"), array("field" => $my

jasperphp error passing parameters

南笙酒味 提交于 2019-12-08 07:33:16
问题 In a jasper report I have a sql sentence like this: SELECT * FROM table $P!{my_where} In my php program, I'm calling the report this way: JasperPHP::process( base_path() . '/app/reports/report.jasper', false, array("pdf"), array("my_where" => "WHERE field = value"), \Config::get('database.connections.mysql') )->execute(); Then, this is the error message: Wrong report param format! Doing it the simple way works, I mean: In the report: SELECT * FROM table WHERE $P!{field} = $P{value} In PHP:

Open report in new tab using jasper plugin in grails

本秂侑毒 提交于 2019-12-02 21:36:51
问题 I am using jasper plugin to generate my report. All is fine but except my pdf is opening on the current tab, when I want to open it in a new tab. I have no idea how to do it. Can anybody please help me on this please? I am using "i-report" to design my pdf. Here is my code below : def index = { println(params) def testModel = this.getProperties().containsKey('chainModel') ? chainModel : null JasperReportDef report = null if (params.containsKey('auto_print_dialog')){ report = docuJasperService

java.lang.IllegalStateException: getOutputStream() has already been called for this response when calling JasperReport

懵懂的女人 提交于 2019-11-30 07:41:02
问题 I am trying iReport/JasperReport in JSF 2 But while i am generating The PDF i got this error. I searched and found some similar problems and solutions, but nothing worked. Sorry for posting the same question again. But I tried all the possible solutions i found, but none worked for me. Please help java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:637) at org.apache.catalina.connector

java.lang.IllegalStateException: getOutputStream() has already been called for this response when calling JasperReport

笑着哭i 提交于 2019-11-29 05:20:14
I am trying iReport/JasperReport in JSF 2 But while i am generating The PDF i got this error. I searched and found some similar problems and solutions, but nothing worked. Sorry for posting the same question again. But I tried all the possible solutions i found, but none worked for me. Please help java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:637) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214) at com.sun.faces.context.ExternalContextImpl