Re: [jasperreports-questions] sub reports auto compile
Hi, If my CustomersReport.jrxml contains two sub reports they are compiled too ? Regards Philippe _ De : BalaKishore Pamarti [mailto:[EMAIL PROTECTED] Envoyé : vendredi 26 septembre 2008 16:16 À : jasperreports-questions@lists.sourceforge.net; Philippe Couas Objet : Re: [jasperreports-questions] sub reports auto compile Just try -- JasperCompileManager.compileReportToFile(request.getSession().getServletCont ext().getRealPath("/jasperreports/" + fileName + ".jrxml")); Pamarti "Peace is found not in what surrounds us, but in what we hold within." --- On Fri, 9/26/08, Philippe Couas <[EMAIL PROTECTED]> wrote: From: Philippe Couas <[EMAIL PROTECTED]> Subject: [jasperreports-questions] sub reports auto compile To: jasperreports-questions@lists.sourceforge.net Date: Friday, September 26, 2008, 12:57 AM Hi, I have an main report with many sub reports. Into my directory i have jrxml file , How could i found sub report name and directory from main report ? I have tried following code, but that's not allawys true. String fileName="c:\\prj_java\\TestAgarder\\jasperxml01\\CustomersReport.jrxml"; JasperCompileManager.compileReportToFile(fileName); JasperReport jasperReport = JasperCompileManager.compileReport(fileName); JRBand jb = jasperReport.getDetail(); // jb children Expression java.util.List jl=jb.getChildren(); JRBaseSubreport jsr=(JRBaseSubreport)jl.get(3); JRExpression jre=jsr.getExpression(); JRExpressionChunk[] jch=jre.getChunks(); String fichierjasper=jch[0].getText(); Regards Philippe - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] sub reports auto compile
Hi, I have an main report with many sub reports. Into my directory i have jrxml file , How could i found sub report name and directory from main report ? I have tried following code, but that's not allawys true. String fileName="c:\\prj_java\\TestAgarder\\jasperxml01\\CustomersReport.jrxml"; JasperCompileManager.compileReportToFile(fileName); JasperReport jasperReport = JasperCompileManager.compileReport(fileName); JRBand jb = jasperReport.getDetail(); // jb children Expression java.util.List jl=jb.getChildren(); JRBaseSubreport jsr=(JRBaseSubreport)jl.get(3); JRExpression jre=jsr.getExpression(); JRExpressionChunk[] jch=jre.getChunks(); String fichierjasper=jch[0].getText(); Regards Philippe - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] JASPER3 DEPLOYMENT ERROR
Hi, I tried to deploy jasper3 on tomcat 5.5 JDK 1.5 but i have an compil error, could you help me ? org.apache.jasper.JasperException: Unable to compile class for JSP: JSP FileName:null Java FileName:/usr/local/lib/apache-tomcat-5.5.25/work/Catalina/localhost/jasper2 04//org/apache/jsp/jsp/compile_jsp.java An error occurred at line: 7 in the generated java file Only a type can be imported. net.sf.jasperreports.engine.util.JRProperties resolves to a package JSP FileName:/jsp/compile.jsp Java FileName:/usr/local/lib/apache-tomcat-5.5.25/work/Catalina/localhost/jasper2 04//org/apache/jsp/jsp/compile_jsp.java An error occurred at line: 35 in the jsp file: /jsp/compile.jsp JasperCompileManager cannot be resolved 32: <%@ page import="net.sf.jasperreports.engine.*,net.sf.jasperreports.engine.util.JRPro perties" %> 33: 34: <% 35: JasperCompileManager.compileReportToFile(application.getRealPath("/reports/W ebappReport.jrxml")); 36: %> 37: 38: File /reports/WebappReport.jrxml exist bien into jasper context directory Regards Philippe - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] Using Dynamic XML gén ération from an Servlet With JasperReport ?
Hi, Could i use JasperReport with an dynamic XML flow coming from an Java Servlet ? I could have an static WSDL file too for datas format . Regards Philippe Philippe COUAS Responsable Développement INFODEV S.A. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions