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

2002 JI Open Discussion

Members
  • Posts

    1,481
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by 2002 JI Open Discussion

  1. By: Gregory A. Swarthout - gswarthout Formatting problem 2003-03-24 12:09 This one is better seen than described. Take a look at these two html files: http://www.xmission.com/~gregorys/move/Ex1.html http://www.xmission.com/~gregorys/move/Ex2.html In the first one, Ex1.html, the fourth detail item is three lines tall while all the rest are two lines tall, as they should be. None of the columns has isStretchWithOverflow set to true. In the second one, Ex2.html, I have set the City + ", " + State column to have isStretchWithOverflow="true". A third line now appears as needed, and also appears on occasion when not needed (details 1, 5, 10). I've verified that the data itself does not contain any linefeeds or carriage returns. Interesting to note is that the fourth detail item now fits into two lines! Do you have a fix for this/these problem(s)? Greg PS: Incidentally, I much prefer the way the detail section stretched in the first example (despite the fact that it shouldn't have). What I mean is that the background colors of the other columns also stretched, whereas in the second example, the background colors of the other columns did not stretch and left "holes" in the report. Which way is it supposed to happen? If it's supposed to happen as in the first example, could you provide an attribute that would set a vertical text alignment for stretched columns in the same manner that you allow for horizontal text alignment? By: Mark Wilson - markwil RE: Formatting problem 2003-03-24 12:35 Had exactly this problem. Teodor sent me this, which works (important is stretchType="RelativeToTallestObject"): Try this detail band: <detail> <band height="20"> <elementGroup> <rectangle> <reportElement x="0" y="0" width="800" backcolor="#E4E2E3" height="15" isPrintWhenDetailOverflows="true"> <printWhenExpression>new Boolean($V{counter}.intValue() % 2 == 1)</printWhenExpression> </reportElement> <graphicElement stretchType="RelativeToTallestObject"/> </rectangle> <textField pattern=""> <reportElement x="0" y="0" width="40" height="15"/> <textElement> <font reportFont="Arial_Data"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{kdnr}]]></textFieldExpression> </textField> <textField pattern="" isStretchWithOverflow="true"> <reportElement x="60" y="0" width="250" height="15"/> <textElement> <font reportFont="Arial_Data"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{firma}]]></textFieldExpression> </textField> <textField pattern="" isStretchWithOverflow="true"> <reportElement x="330" y="0" width="300" height="15"/> <textElement> <font reportFont="Arial_Data"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{adresse}]]></textFieldExpression> </textField> <textField pattern="" isStretchWithOverflow="true"> <reportElement x="650" y="0" width="150" height="15"/> <textElement> <font reportFont="Arial_Data"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{ansprechpartner_info}]]></textFieldExpression> </textField> </elementGroup> </band> </detail> - Mark
  2. By: Yuriy Stepanyuk - ystep How to show first pages befor report filled? 2003-03-24 12:30 I use applet to servlet web application for reporting. If I have long report like 300 pages it takes like 1.5 minutes to generate one. Is it possible to show first pages of the report before report generation is finished? So user will start working on the beginning of the report while the rest of the report will be under filling. Thanks Yuriy
  3. By: r pelgrim - robinpg Cannot locate pdf font when exporting to pdf 2003-03-05 02:06 I try to generate a pdf-report (using a servlet in Tomcat). This works fine when I just start Tomcat. When starting Tomcat in Eclipse the following error occurs and I cannot find out where to place itext.jar and jasperreports.jar to let it work. hope somebody can help, Robin ************************************************************************* * WARNING: Failure using Thread.currentThread().getContextClassLoader() * * in JRLoader class. Using JRLoader.class.getClassLoader() instead. * ************************************************************************* dori.jasper.engine.JRException: Could not load font from location : Times-Roman at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1006) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:346) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:295) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:217) at dori.jasper.engine.JasperExportManager.exportReportToPdfStream(JasperExportManager.java:166) at com.ie.web.reports.ReportGenerator.streamReportPDF(ReportGenerator.java:108) at ReportServlet.doService(ReportServlet.java:110) at ReportServlet.doGet(ReportServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:527) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:536) dori.jasper.engine.JRException: Could not load font from location : Times-Roman at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1006) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:346) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:295) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:217) at dori.jasper.engine.JasperExportManager.exportReportToPdfStream(JasperExportManager.java:166) at com.ie.web.reports.ReportGenerator.streamReportPDF(ReportGenerator.java:108) at ReportServlet.doService(ReportServlet.java:110) at ReportServlet.doGet(ReportServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:527) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:536) By: Teodor Danciu - teodord RE: Cannot locate pdf font when exporting to pdf 2003-03-05 09:31 Hi, I heard this happens in a very arbitrary way on Unix machines. Are you using iReport? Thank you, Teodor By: r pelgrim - robinpg RE: Cannot locate pdf font when exporting to pdf 2003-03-06 05:56 Hi, For now it's running on a Windows machine.. I wonder how the resources are found by: URL url = classLoader.getResource(location); where location is only the font name without path. Where is the link between resource location (comlowagietextpdffontsfontname.afm) in the jar file and the fontname? I am using iReport. Thanks, Robin By: r pelgrim - robinpg RE: Cannot locate pdf font when exporting to pdf 2003-03-06 06:01 Hi, For now it's running on a Windows machine.. I wonder how the resources are found by: URL url = classLoader.getResource(location); where location is only the font name without path. Where is the link between resource location (comlowagietextpdffontsfontname.afm) in the jar file and the fontname? I am using iReport. Thanks, Robin By: r pelgrim - robinpg RE: Cannot locate pdf font when exporting to pdf 2003-03-06 08:08 Hi, when using 'classLoader.getResource("com/lowagie/text/pdf/fonts/Times-Roman.afm")' i.s.o. 'classLoader.getResource("Times-Roman")' the correct url is found! isn't this a better way to retrieve the standard lowagie font resources? Robin By: Teodor Danciu - teodord RE: Cannot locate pdf font when exporting to pdf 2003-03-13 13:46 Hi, We should not get to such work-arounds. I was not able to track this yet. It is a weird problem that appears sporadically. Hard to reproduce and explain. Normally, iText should recognize its own built-in fonts. Thank you, Teodor By: Larry Settle - l_settle RE: Cannot locate pdf font when exporting to pdf 2003-03-24 10:58 I recently had a very similar problem. My environment is: Win2K Pro Eclipse 2.0.2 Jetty 4.1.2 j2sdk1.4.1_01 When I run the environment from the command line all is well. When I run from Eclipse I was unable to locate various PDF fonts. It turns out the problem is not in locating the font, but rather the character set encoding for the font. The problem is caused by setting up the Eclipse runtime environment incorrectly. The following solved the problem for me. In Eclipse goto Run, Run.. and select your launch configuration. Select the Classpath tab. Then select the bootstrap classes tab. Uncheck the use default class path. Click add external Jars.. In the file dialog navigate to your JDK1.4.1 jre/lib directory and select charsets.jar. This should add it to the classes that will be loaded by the bootstrap loader. There are only 16 built-in character set encodings and they are in rt.jar. The charsets.jar adds many more encodings via the standard SPI mechanism. The bootstrap loader invoked from the command line will automatically make the extra encodings available. Eclipse does not load the charsets.jar file by default so it does not install the extended charset encodings. The IText library used by JasperReports intercepts an exception thrown by the runtime and reports the font is not available. Actually the font is available but the requested encoding is not. In my case I had a character encoding of "Cp1250". That character set is only in the extended character sets not the standard. Changing to "Cp1252" will circumvent the problem because it is in the standard character sets (they are in rt.jar). But adding the charsets.jar to the bootstrap classes will make your Eclipse launches and command line launches agree on the installed character sets. I hope this solves your problem as well.
  4. By: Danu Bogdan - bogdandanu report window title 2003-03-24 02:07 I have a web application and I put the report into a stream (eg runReportToPdfStream). It works but I can't change the popup window title in which the report is displayed. If I change it, when I display the report it's changed back to an nasty URL.
  5. By: Alejandro Alliana - aalliana X11 connection rejected because of wrong auth 2003-03-22 08:05 Sory if this was previously posted on another thread. I get the following error when trying to display a html report throw a jsp page. X11 connection rejected because of wrong auth cat catalina.out throws Apache Tomcat/4.1 Mar 22, 2003 12:46:32 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Mar 22, 2003 12:46:32 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Mar 22, 2003 12:46:32 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=10/53 config=/var/tomcat4/conf/jk2.properties X connection to localhost:10.0 broken (explicit kill or server shutdown). any ideas? TIA aa
  6. By: Suraj Amin - suraj_amin eXtending JRViewer 2003-03-22 00:20 Hi, I have a peculiar problem. I need to replace the Reload function from just reloading from the jasperPrint obect to refilling the data and displaying refreshed data from the db. I also need to add more buttons to the toolbar like Save As PDF, XSL, etc. How do I go about doing the above? -- Regards, Suraj Amin Homepage: http://www.geocities.com/suraj_amin/ /* I'm a self-made man, but I think if I had it to do over again, I'd call in someone else. */ By: Teodor Danciu - teodord RE: eXtending JRViewer 2003-03-22 05:08 Hi, If you take a look at the "webapp" sample, you can see that the applets there extend the JRViewer. On of them adds a button to the toolbar and changes the zoom ratio list. A similar approach could be taken to do what you need. I hope this helps. Teodor
  7. By: Yuriy Stepanyuk - ystep How to convert to HTML without pictures? 2003-03-21 11:29 When I convert “.jprint” to “.html” reporter creates subfolder for “.html” related files. Even though I don’t have any pictures on my report it inserts plenty picture links in .html. Now I use servlet to stream .html to a client. For security reasons I can not make report available on web server directly. Client receives ugly report with empty picture boxes. How to convert without pictures? By: Teodor Danciu - teodord RE: How to convert to HTML without pictures? 2003-03-21 14:13 Hi, Even if you don't have images in your report, the built-in HTML exporter always use a 1 pixel transparent image to prefectly align elements on the page. This way, the HTML content looks very much like the PDF output, except for the lines, rectangles and ellipses. If you don't want any image, I'm afraid you have to create an HTML exporter of your own. This should not be too hard since you can reuse much of the existing exporter's code. Before doing that, you might take a look at the "webapp" sample provided and see that it generates HTML content and streams it on-the-fly, using a special servlet to stream also the images. There are no files generated on disk, so maybe you can avoid your restrictions this way. I hope this helps. Teodor
  8. By: Sivasubramanian - t_shivam AWT and x server on UNIX 2003-03-20 16:39 Hi I'm running a sample test program using jasper api on unix server, where i generate a pdf report onto the file system. The program runs fine on windows but give the foll. error on UNIX "Can't connect to X11 window server using '10.14.14.180:0' as the value of the DISPLAY variable." I know thati have to run an x server to make the awt components(i think these look for some fonts) work .. My questions are :1. why does Japser use awt component to display font 2. Based on your experience, is this the way itext and other products/tools(JReport, Actuate..) work? Your answers would be appreciated and very helpful for me. PLease send me ur answers to t_shivam@yahoo.com Thx ShivA By: juan david vergara perez - jvergara RE: AWT and x server on UNIX 2003-03-21 11:02 hi, on unix, the jasperreports needs Xvfb service running. This solve your problem. Bye By: juan david vergara perez - jvergara RE: AWT and x server on UNIX 2003-03-21 11:07 mmmm the Xvbf service start ud in this way: /usr/local/XVFB/start & like teodor, i hope this helps. By: juan david vergara perez - jvergara RE: AWT and x server on UNIX 2003-03-21 11:08 mmmm the Xvbf service start up in this way: /usr/local/XVFB/start & like teodor, i hope this helps.
  9. By: Alejandro Alliana - aalliana java.lang.ClassCastException 2003-03-21 05:56 I'm sorry if this topic was previously posted: I'm trying to print a report that has a column that is a calculated field using a jsp page, ie: select descripcion, count(1) as cantidad from coincidencias inner join estados on (coincidencias.estado = estados.id_estado) group by descripcion I get the following error: java.lang.ClassCastException at ConsolidadoEstados.evaluate(ConsolidadoEstados.java:129) at dori.jasper.engine.fill.JRCalculator.evaluate(JRCalculator.java:678) at dori.jasper.engine.fill.JRCalculator.evaluate(JRCalculator.java:614) at dori.jasper.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:342) at dori.jasper.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:329) at dori.jasper.engine.fill.JRFillBand.evaluate(JRFillBand.java:360) java -version prints: java -version java version "1.4.1_02" Java 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) Java HotSpot Client VM (build 1.4.1_02-b06, mixed mode) TIA aa By: Alejandro Alliana - aalliana RE: java.lang.ClassCastException 2003-03-21 07:08 Found a solution. Aparently the calculated field is of type Long, not Integer. I was using postgresql. aa
  10. By: Stefan G ng - bishop3337 printWhen problems 2003-03-21 03:00 hello! i've got to differentiate between a site counter on all pages from the first to n-1 and a summary only on the last page. i know how to use page counters, but when i use the variable PAGE_COUNTER to check if the actual page is the last one it does not work. my code in the printWhenExpression: new Boolean($V{PAGE_NUMBER}==$V{AmountOfPages}) (AmountofPages is my own variable using $V{PAGE_NUMBER}, calculation type="Highest" and Reset Type="Report") i tried new Boolean($V{PAGE_NUMBER}.intValue()==$V{AmountOfPages}.intValue()) and new Boolean($V{PAGE_NUMBER}.equals($V{AmountOfPages})), too but i the field is always shownin the report. the reason for that is that at the time of the comparision the two variables have the same value because the evaluation time is "Now" for both variables. how can i solve this problem? By: Teodor Danciu - teodord RE: printWhen problems 2003-03-21 04:27 Hi, The "printWhenExpression" is always evaluated "Now", that is using the current values of the variables. Why? For example, you cannot know or use the total number of pages in a "printWhenExpression", because your decision to print something or not, based on that value, will probably affect the total number of pages itself. See? The "evaluationTime" is only a bonus feature that allows you to display text field or image content that is calculated later. But as you can see, the text fields that have "evaluationTime" different than "Now" cannot stretch. Again why? Because when we go back to display the content we cannot rearrange elements on the page knowing that this way the page breaks will change and all the calculations already made will have to be updated. The last page of the report could only be intercepted using scriptlets. There are some tricks explainig how to do that in the forum. Not very simple, but I'm working to simplify that. I hope this helps. Teodor By: Stefan G ng - bishop3337 RE: printWhen problems 2003-03-21 05:26 thanks again teodor!
  11. By: Stefan G ng - bishop3337 detail band, dummy groups 2003-03-21 01:57 hi! i use jasperreports 0.4.5 and iReport 0.0.9 i found the common problem with having multiple sections in the detail band and the proposed solution to it using dummy groups. this works just fine, but isn't it a dirty solution? groups are as their name says used to group something, not to enlarge the detail area. i placed some static text and some filelds that appear once in the whole record in the detail2header (the detail2 group "groups" ths detail band) and my subreport (often repeated, multiple pages) into the detail band. when i would place the fields and the subreport together in the detail band the subreport does only use the space on the following pages partially. isn't there a better solution for the problem than to abuse the dummygroupheaders/footers? By: Teodor Danciu - teodord RE: detail band, dummy groups 2003-03-21 04:34 Hi, Given the way the engine works today, splitting the large bands into smaller ones is the only solution. We could enhance this splitting mechanism so that we don't talk about dummy groups but rather about some kind of a special element called "splitter" (a horizontal invisible line that you could insert into the band). If you do not split a large band, one side effect is that when this band overflows, you get some unused white space on the next page. Thank you, Teodor By: Stefan G ng - bishop3337 RE: detail band, dummy groups 2003-03-21 05:25 thank you!
  12. By: Yuriy Stepanyuk - ystep Error closing ResultSet or Statement 2003-03-20 12:11 I receive this Exception: dori.jasper.engine.JRException: Error closing ResultSet or Statement for report data source : Prototype in this instruction: JasperFillManager.fillReportToFile( r,”C:Prototype.jrprint", parameters, super.getConn()); super.getConn() returns Connection that is global variable in super class What might be a reason for this? Does it mean that connection must be local variable? What restrictions are on Connection variable? By: Teodor Danciu - teodord RE: Error closing ResultSet or Statement 2003-03-21 00:52 Hi, There is a patch for this here: http://sourceforge.net/tracker/index.php?func=detail&aid=681655&group_id=36382&atid=416705 It will be part of the next release. Thank you, Teodor
  13. By: Alex - bumperbox engine.JRException: Error compiling 2003-03-20 23:33 I am getting this error (see below) both in eclipse on my own app and running the samples with ant I have j2sdk1.4.0_02 installed. What could the problem be ? thanks alex ******************************************************************** * WARNING: Unable to compile with "sun.tools.javac.Main" compiler. * * Cause : java.lang.ClassNotFoundException : sun.tools.javac.Main * * Compiling with command line "javac" compiler. * ******************************************************************** By: Teodor Danciu - teodord RE: engine.JRException: Error compiling 2003-03-21 00:47 Hi, It is just a warning. It will disappear if you put tools.jar into your classpath. Thank you, Teodor
  14. By: Jochen Hiller - jhiller Exporter for plain text 2003-03-18 08:45 Hi all, we consider to use JasperReports to replace an "old" fashioned, host based reporting system. The required output format is plain ASCII text, means 132 columns, about 50 rows, and fixed positioning of all header, footer, and data parts. We understand, that there is NO plain exporter yet available. Are there other options, e.g. using the printer API and a simple printer type ? Or how much effort would be needed to write such an "JRPlainTextExporter" ? Thanks for your help. Jochen
  15. By: Mark Wilson - markwil Alternate line-colouring + variable height 2003-03-18 01:51 Hi, after having figured out how to alter the background of alternate lines to better readability (IMHO there should be an example of this included with JasperReports - it is not trivial and is popular) I´m now having problems when one column uses isStretchWithOverflow="true" to break text when necessary -> only this columns 2nd line is coloured and the other columns have only a single line coloured. Anybody got a workaround for this?? TIA. - Mark
  16. By: Mark Wilson - markwil Images in JAR - How? 2003-03-17 02:36 Hi, how can I reference an image in a jar when the compiles report is in the same jar?? TIA. -Mark By: Teodor Danciu - teodord RE: Images in JAR - How? 2003-03-17 11:27 Hi, You use paths relative to the root of the JAR, knowing that the engine searches for the images as resources in the classpath. I hope this helps. Teodor By: Mark Wilson - markwil RE: Images in JAR - How? 2003-03-17 11:46 Hi Teodor, structure of my client.jar: config de/wilsoncom/...... img report_templates I tried using path relative to root of jar in the compiled report: "..//img//logo.gif" and still got an error message. Any ideas? TIA. - Mark By: Teodor Danciu - teodord RE: Images in JAR - How? 2003-03-17 13:45 Hi, Why do you put double slashes? Try this: "img/logo.gif" I hope this helps. Teodor By: Mark Wilson - markwil RE: Images in JAR - How? 2003-03-18 01:44 Hi Teodor, it now works. ("img/logo.gif"). I read somewhere in this forum that you needed double slashes because of the esc-char - but that is of course and not /. Thanks anyway. -Mark
  17. By: ryanwu - ryanwu How do I set the relative path to subreport 2003-03-17 22:56 how can I set the relative path to subreport in my main report by iReport.. ex: <subreportExpression class="java.lang.String"><![CDATA[ "Report2_1.jasper" ]]></subreportExpression> ?? like above setting doesn't work
  18. By: ryanwu - ryanwu export my created character to PDF ? 2003-03-17 22:52 I create a character (encoding is unicode) by true type maker progrom in windows 2000 then .. How can I show the charater by JasperReport throungh iReprot to export PDF??
  19. By: Diego Parrilla - dparrilla How to change where fonts are located? 2003-03-17 06:13 Hi, I have developed a Web-based reporting render engine with JasperReports, and I have found that the fonts and the graphics must be in the directory where my app-server was started. I would like to know how to configure JasperReports to get these files from my 'favourite' directory. Here goes a bit of the code in the 'service' method of a servlet: Map parameters = new HashMap(); if ((reportName!=null) && (reportName.equals(""))) { parameters.put("ReportTitle",reportName); } parameters.put("BaseDir", reportDirectory + System.getProperty("file.separator")); byte[] bytes; try { bytes = JasperRunManager.runReportToPdf( reportDirectory + System.getProperty("file.separator") + reportFile + ".jasper", parameters, new JRXmlDataSource(xmlDataSource)); } catch (JRException e) { throw new ServletException(e); } catch (CustomException e) { throw new ServletException(e); } Anybody can help me? Thanks in advance Diego By: Teodor Danciu - teodord RE: How to change where fonts are located? 2003-03-17 11:22 Hi, The TTF files can be placed in the classpath. This is how the samples work. I hope this helps. Teodor
  20. By: siva kumar - lovish_hyd report with multiple TITLE page(s) 2003-03-16 21:47 I was wondering ig any body can suggest how to design a report with 2 independent title pages in a report. Lovish
  21. By: Reinhard Achleiter - crazyreini VM Crash while printing 2003-03-14 23:37 Hi! When i perform some prints in a short time, the VM Crash with an unexpected exception always at the same place: JRCalculator.java Method evaluate(JRExpression) try { here he generate a NullPointerException, but this causes a VM Crash value = this.evaluate(expression.getId()); } Has anyone the same problem? I use jasperreport 0.4.5 and jdk1.4.1_02 on WinXP (the same problem is on WIN2000) kind regards Reinhard By: Krishna S - krishna_s RE: VM Crash while printing 2003-03-15 08:30 Hi Reinhard, I apologize for not posting my experience earlier. I tracked the problem to an unstable version of JVM. The crash happens randomly. When I switched to a stable version of JVM I did not see any crashes. If I remember correctly version jdk1.4.1 was unstable some time back. I switch to jdk 1.4.0 Rgds., Krishna
  22. By: Anthony W. Gatton - agatton Document Exception 2003-03-14 11:32 Greetings, great product. I'm getting a java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:130)" message when executing my program from a jar file. It works fine from my IDE (Sun ONE Studio 4) and creates the pdf. I must be missing a component in my .jar that is in the classpath of the IDE. Anyone have any ideas? Thanks, Tony By: juan david vergara perez - jvergara RE: Document Exception 2003-03-14 13:39 of course, i think that you don't have the iText library into your classpath. Remeber that the JasperReports needs the iText library to work. By: juan david vergara perez - jvergara RE: Document Exception 2003-03-14 14:06 of course, i think that you don't have the iText library into your classpath. Remeber that the JasperReports needs the iText library to work. By: Anthony W. Gatton - agatton RE: Document Exception 2003-03-15 01:58 Exactly as you describe, Thank you very much.
  23. By: siva kumar - lovish_hyd 2 title pages 2003-03-14 04:07 I was wondering ig any body can suggest how to design a report with 2 independent title pages in a report. Lovish
  24. By: Chonsiu - chonsiu java.lang.ClassCastException: dori.jasper.eng 2003-03-13 22:46 Hi I try to generate a report in PDF format, but this error occurs.....can anybody help me ? java.lang.ClassCastException: dori.jasper.engine.JasperReport at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:96) Thx... By: Teodor Danciu - teodord RE: java.lang.ClassCastException: dori.jasper.eng 2003-03-14 02:54 Hi, The reports have to filled before being exported. You are supplying a report template to the exporter instead if a generated report (JasperPrint object or .jrprint file). Check this for details: http://jasperreports.sourceforge.net/quick.how.to.html I hope this helps. Teodor
  25. By: Georges Goebel - g_goebel subreport : changing the parameters 2003-03-14 01:13 Hi, I have a master report which is composed by several fields and a subreport. The master report passes a parameter (which is a variable of type "System" from the master report) to the subreport. I would like to change the value of the parameter in the subreport (I have tryed with a scriptlet in the subreport which works, but in the master report the value isn't changed) inorder to show the changed value in the master report. My Question: How to change a parameter in a subreport and display the changed value in the master report ?? Thanks
×
×
  • Create New...