Jump to content
We've recently updated our Privacy Statement, available here ×

unakaha

Members
  • Posts

    8
  • Joined

  • Last visited

unakaha's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi I am create 2 page of report in first page i created subreport in summaryband to call next page.. But when it executed the report,the second page is start print in middle of the page... Please give me idea to print in correct alignment.....it should be in top of page Thanks and regards Ashok kumar.A
  2. Hi.. I created one master jrxml file.that contains two parameters,(Both parameter are java.lang.String) and i created client jrxml file that use the master's parameters when i create a subreport in master file to call client jrxml.it gives following error Class not set for subreport parameter expersion,Year use java.lang.Object class Class not set for subreport parameter expersion,Month use java.lang.Object class how to solve the error. Thanks in advance By Ashok kumar
  3. Hi friends... i want to create 5 pages of pdf report so i created 5 jrxml files. Each jrxml file having query and i have passed two parameter. when i run each file individual it is giving exact result.. after that i create one master jrxml file that contain 5 subreports that is filled by 5 jrxml files(mentioned above) in my master jrxml no need to connect dbconnection but subreport needs to connect dbconnection. After executing the jrxml file it display no pages found.. Thanking you, Ashok kumar
  4. Hi Everyone, I have an unicode in database.How to print that unicode in a pdf with particular font style? If anyone has the answer please let me know.Thanks in Advance. Regards, AshokKumar
  5. hi pradeep .. i am here attached my 2 jrxml file..could u make it as one master jrxml having two subreports(2 jrxmls) Thanking u in advance by Ashok kumar
  6. I CANNOT HAVE TO DESINE A JRXML FILE..BECAUSE MY JRXML PAGE SHOULD HAVE 2 TABLES. EACH TABLE HAVING DETAILS LIKE A4 SHEET..I DESIGNED FIRST PAGE..HOW INSERT SECOND PAGE WITH ALL FIELDS INTO SUBREPORT ..COULD YOU SEND ANY JRXML WITH USING SUBREPORTS
  7. hi.. i want to create 20 pages in one jrxml file .. i have an error to use subreport and page break by Ashok kumar
  8. Hi, I have created jasper report page.. when i am running Some times it shows the the following exception please give any idea how to avoid the exception exception java.lang.IllegalStateException: *getOutputStream() has already been called for this response* at org.apache.catalina.connector.Response.getWriter(Response.java:596) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75) at org.apache.jsp.ReportForm8_005fWeek1_jsp._jspService(org.apache.jsp.ReportForm8_005fWeek1_jsp:126) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) Code:My JSP program<%importing necessary files %><%String driver = "org.postgresql.Driver";String url = "jdbc:postgresql://localhost:5432/RHMIS";String user = "postgres";String password = "RHMIS";Class.forName(driver);try{Connection con = DriverManager.getConnection( url, user, password );File reportFile = new File("C:/ashok/jrxmls/week1.jasper"); if (!reportFile.exists()) throw new JRRuntimeException("File WebappReport.jasper not found. The report design must be compiled first.");JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,null,con);if(jasperPrint.getPages().isEmpty()) { System.out.println("there is no record"); }else { byte[] bytes =JasperRunManager.runReportToPdf(reportFile.getPath(),null,con); response.setContentType("application/pdf"); response.setContentLength(bytes.length); ServletOutputStream ouputStream=response.getOutputStream(); ouputStream.write(bytes, 0, bytes.length); ouputStream.flush(); ouputStream.close(); } }catch(Exception e){ e.printStackTrace();}%>
×
×
  • Create New...