jyobeer
Members-
Posts
12 -
Joined
-
Last visited
jyobeer's Achievements
-
Hi, I tried exporting the font and placed it on my local tomcat which is running on WINDOWS machine. But no change.Am still getting the same ¤ symbol for EURO (€). Please let me know if i can fix this in some other way. Thanks Jitu
-
Hi, I am using ISO-8859-15 encoding but still not getting the euro currency symbol. Its comming up like ¤. Can any one please help me resolving this Thanks Jitu
-
Hi, I am also getting same ¤ symbol for EURO currency. Please help Thanks Jitu
-
Hi, I just found out that only euro symbol is not comming up in csv all other symbols are comming up like yen and pound. Thanks Jitu
-
Hi, Thanks for the quick reply. I am getting the symbols perfectly in pdf and excel sheets while exporting. But the issue i am getting is only in csv files. Do you still think this might be a font issue. If so please tell me how to create a font extension. Thanks Jitu
-
Hi, Missed some informations. I am trying to show different currency symbols in csv file which comes up as ? mark even after ISO-8859-1 encoding Please help Thanks Jitu
-
Hi , I am using character encoding as ISO-8859-1 while exporting data to csv. Its working fine in my local system (Windows) but fails in my Dev box which runs in unix. The symbol comes up as ? in unix box in csv file. Please help so that i can close the issue. Thanks Jitu
-
Hi , Can you please help me resolve this. I am having the same issue. Please tell me how can i remove extra spacing. I am using the same JRXML file for pdf, excel and csv export Thanks Jitu
-
Hi I am trying to export data in PDF But i am getting below exception at Can anyone help please. JasperRunManager.runReportToPdfStream(reportStream,servletOutputStream, parameters, dataSource); Error in getting the report net.sf.jasperreports.engine.JRException: Error loading object from InputStream at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:205) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:603) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdfStream(JasperRunManager.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:821) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:55) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:36) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:170) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:238) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:168) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(ContextClassLoaderObjectInputStream.java:53) at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:200) ... 40 more Post Edited by jyobeer at 08/04/2011 07:22
-
Hi, I am using table from the palette window but i am not able to populate data into it. Can you please help me with some sample code snippet.
-
Hi, I am pretty new to iReport as well as Jasper framework. As per my requirment i need to populate a list of data in a table format. If i am using only fields one by one am able to create the table but if i am trying to use the table component from Palatte window i am not able to populate values in the details section of the Table. PFB the code snippet i am using and also the .jrxml file. Please suggest how can i make this work. Code:package net.ensode.jasperbook;import java.io.IOException;import java.io.InputStream;import java.io.PrintWriter;import java.io.StringWriter;import java.util.HashMap;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import net.sf.jasperreports.engine.JRDataSource;import net.sf.jasperreports.engine.JREmptyDataSource;import net.sf.jasperreports.engine.JRException;import net.sf.jasperreports.engine.JRExporterParameter;import net.sf.jasperreports.engine.JasperFillManager;import net.sf.jasperreports.engine.JasperPrint;import net.sf.jasperreports.engine.JasperRunManager;import net.sf.jasperreports.engine.data.JRBeanArrayDataSource;import net.sf.jasperreports.engine.export.JRCsvExporter;import net.sf.jasperreports.engine.export.JRXlsExporter;import net.sf.jasperreports.engine.export.JRXlsExporterParameter;@SuppressWarnings("serial")public class ParameterReportServlet extends HttpServlet { private static final String FORM_NAME = "accountStatement"; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } private AircraftData[] initializeBeanArray() { AircraftData[] reportRows = new AircraftData[4]; reportRows[0] = new AircraftData("N263Y", "T-11", "39 ROSCOE TRNRRACER", "R1830 SERIES"); reportRows[1] = new AircraftData("N4087X", "BA100-163", "BRADLEYAEROBAT", "R2800 SERIES"); reportRows[2] = new AircraftData("N43JE", "HAYABUSA 1", "NAKAJIMAKI-43 IIIA", "R1830 SERIES"); reportRows[3] = new AircraftData("N912S", "9973CC", "PA18-150", "R-1820 SER"); return reportRows; } private JRDataSource createReportDataSource() { JRBeanArrayDataSource dataSource; AircraftData[] reportRows = initializeBeanArray(); dataSource = new JRBeanArrayDataSource(reportRows); return dataSource; } @SuppressWarnings("unchecked") protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { final String FORM_FORMAT = request.getParameter("pattern"); response.setHeader("Content-Disposition", " attachment; filename=\"" + FORM_NAME + "." + FORM_FORMAT + "\""); ServletOutputStream servletOutputStream = response.getOutputStream(); InputStream reportStream = getServletConfig().getServletContext() .getResourceAsStream("/reports/report2.jasper"); HashMap parameterMap = new HashMap(); parameterMap.put("accountId", 828018l); parameterMap.put("conversionRate", 140.0); parameterMap.put("totalDebit", 20.3); parameterMap.put("totalCredit", 15.0); JRDataSource dataSource = createReportDataSource(); try { if (FORM_FORMAT.equals("pdf")) { JasperRunManager.runReportToPdfStream(reportStream, servletOutputStream, parameterMap, dataSource); response.setContentType("application/pdf"); servletOutputStream.flush(); servletOutputStream.close(); } } } catch (JRException e) { // display stack trace in the browser StringWriter stringWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(stringWriter); e.printStackTrace(printWriter); response.setContentType("text/plain"); response.getOutputStream().print(stringWriter.toString()); } }}