ktlam1955
-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by ktlam1955
-
-
-
How do I add this in iReport?
-
I get this error below when I set my page width size to 36 inches or more and I output in text(iReport) preview. Has anyone ever encountered this before? Does anyone know what could be causing this? Thanks in advance.
Exporting TXT (iReport) to file... C:\Program Files\GEBIT\TREND Analyst Community Edition\GEBIT_workspace\HDP reports\Route List by Geographic Area and Route Attributes\JasperReports\RouteLogAttributeByGeoArea3.txt. Error exporting print...String index out of range: -24 java.lang.StringIndexOutOfBoundsException: String index out of range: -24
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at it.businesslogic.ireport.export.JRTxtExporter.replaceLineRegion(JRTxtExporter.java:473)
at it.businesslogic.ireport.export.JRTxtExporter.layoutGrid(JRTxtExporter.java:407)
at it.businesslogic.ireport.export.JRTxtExporter.exportPage(JRTxtExporter.java:281)
at it.businesslogic.ireport.export.JRTxtExporter.exportReportToWriter(JRTxtExporter.java:268)
at it.businesslogic.ireport.export.JRTxtExporter.exportReport(JRTxtExporter.java:223)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:1516)
at java.lang.Thread.run(Thread.java:619) -
When I set my page width to 36 or more inches and I output my report text(iReport) mode I get the following error:
Error exporting print...String index out of range: -24 java.lang.StringIndexOutOfBoundsException: String index out of range: -24
Can someone please tell me what maybe causing this? I notice this does not happen in PDF, Excel or any other output format mode, all the text modes are fine except in text iReport.
Thank you.
-
I am writing a report that generates a CSV file in iReport. Can someone tell me how to change the delimiter from a comma to something else like a semicolon for example? I can't seem to find out where I can do this in iReport. The default delimiter seems to be a comma but my user needs a CSV file delimited by semicolons. Any help is appreciated. Thanks in advance.
-
I'm not sure if this problem is similar but I'm trying to find out how to change the default delimiters that iReport outputs in a CSV file from commas to semicolons. I'm am unable to find out how to do this. Would you know? Thanks.
ktlam...
-
Thank you for your help but I now have a different error.
It seems like I'm missing a library in my classpath but I don't know jar file I should get to get this library.Errors compiling C:\Program Files\GEBIT\TREND Analyst Community Edition\GEBIT_workspace\HDP reports\TSC Speed Station Data by CDS Route Number\JasperReports\Untitled_report_1Scriptlet.java. C:\Program Files\GEBIT\TREND Analyst Community Edition\GEBIT_workspace\HDP reports\TSC Speed Station Data by CDS Route Number\JasperReports\Untitled_report_1Scriptlet.java:4: cannot access it.businesslogic.ireport.IReportScriptlet
bad class file: C:\iReport\iReport-3.0.0\.\lib\iReport.jar(it/businesslogic/ireport/IReportScriptlet.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class Untitled_report_1Scriptlet extends it.businesslogic.ireport.IReportScriptlet { -
Hello, I'm new to using scriptlets in iReport and I am having trouble getting started. I am trying to write my first one.
I selected "Use iReport internal scriptlet support" in Report Properties.
I used the Scriptlet editor in iReport to write a simple method just to start.
When I ran the report I got the following error.
Error compiling the Scriptlet Java source. net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\Program Files\GEBIT\TREND Analyst Community Edition\GEBIT_workspace\HDP reports\TSC Speed Station Data by CDS Route Number\JasperReports\Untitled_report_1Scriptlet.java
at net.sf.jasperreports.engine.design.JRJdk13Compiler.compileClasses(JRJdk13Compiler.java:119)
at net.sf.jasperreports.engine.design.JRAbstractMultiClassCompiler.compileClass(JRAbstractMultiClassCompiler.java:45)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:362)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:179)
at net.sf.jasperreports.engine.design.JRJdk13Compiler.compileClasses(JRJdk13Compiler.java:81)
... 3 more
Compilation running time: 94.Can someone please tell me what I could be doing wrong? Thanks in advance.
Code:
Post Edited by ktlam1955 at 05/29/2009 01:03
Post Edited by ktlam1955 at 05/29/2009 01:04
Scriptlet not working in iReport 3.7.1
in Products
Posted
I am getting a "java.lang.ClassNotFoundException" for my scriptlet even though the jar file it is contained in is in the classpath and the scriptlet class is defined in the report's properties. See screen shot below.