burasami
Members-
Posts
48 -
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
Everything posted by burasami
-
hai for past two days i have been wasted my time for adding two sub report return value. i have seen some post in this form such that " you can't able compute any opertion on return value from sub report" so that i have wrote a scriplet to perform add opertion on those two return value. i have created Sample_Scriplet.java,Sample_Scriplet.class, and created a Sample_Scriplet.jrxml and placed this files in same directory. while i am running the jrxml file iReport shows following error.. please help me. its very urgent.. here by i attached my scriplet file... help me .. thanks in advance Error filling print...  java.lang.ClassFormatError:  Incompatible magic value 1768779887 in class file Sample_Scriplet null java.lang.ClassFormatError: Incompatible magic valu 1768779887a in a class a file a Sample_Scriplet at a java.lang.ClassLoader.defineClass1(Native Method) at a java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at it.businesslogic.ireport.ReportClassLoader.loadClassData(ReportClassLoader.java:422) at a it.businesslogic.ireport.ReportClassLoader.findClass(ReportClassLoader.java:351) at a java.lang.ClassLoader.loadClass(ClassLoader.java:306) at a java.lang.ClassLoader.loadClass(ClassLoader.java:251) at a java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at a java.lang.Class.forName0(Native Method) a at a java.lang.Class.forName(Class.java:242) at a net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:72) at a net.sf.jasperreports.engine.fill.JRFillDataset.createScriptlet(JRFillDataset.java:445) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:590) at a net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:879) a at a net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:708) at a net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:666) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234) at a it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:752) at a java.lang.Thread.run(Thread.java:595) Print not a filled. a Try to use a an EmptyDataSource...! import net.sf.jasperreports.engine.JRDefaultScriptlet; import net.sf.jasperreports.engine.JRScriptletException; public class Sample_Scriplet extends JRDefaultScriptlet { /** Creates a new instance of JRIreportDefaultScriptlet */ public void afterGroupInit(String groupName) throws JRScriptletException { if (groupName.equals("sales")) { System.out.println( this.getVariableValue("Total_Charge")); BigDecimal Total_Charge = (java.math.BigDecimal)getVariableValue("Total_Charge") ; BigDecimal Total_Tax = (java.math.BigDecimal)getVariableValue("Tot_Tax"); this.setVariableValue("Grand_Total",(java.math.BigDecimal)getVariableValue("Total_Charge")); // this.setVariableValue("AllCities", sbuffer.toString()); } } /** Begin EVENT_AFTER_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ public void afterColumnInit() throws JRScriptletException { super.beforeColumnInit(); } /** End EVENT_AFTER_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ public void afterDetailEval() throws JRScriptletException { super.afterDetailEval(); } /** End EVENT_AFTER_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ public void afterGroupInit(String groupName) throws JRScriptletException { super.afterGroupInit(groupName); } /** End EVENT_AFTER_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ public void afterPageInit() throws JRScriptletException { super.afterPageInit(); } /** End EVENT_AFTER_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ public void afterReportInit() throws JRScriptletException { } /** End EVENT_AFTER_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ public void beforeColumnInit() throws JRScriptletException { } /** End EVENT_BEFORE_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ public void beforeDetailEval() throws JRScriptletException { } /** end EVENT_BEFORE_DETAIL_EVAL Please don't touch or move this comment*/ /** End EVENT_BEFORE_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ public void beforeGroupInit(String groupName) throws JRScriptletException { } /** End EVENT_BEFORE_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ public void beforePageInit() throws JRScriptletException { } /** End EVENT_BEFORE_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ public void beforeReportInit() throws JRScriptletException { } /** End EVENT_BEFORE_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ }
-
hai i have written a scriplet named Sample_Scriplet.java,Sample_Scriplet.class, and created a Sample_Scriplet.jrxml and placed this files in same directory. while i am running the jrxml file iReport shows following error is any one be aware of this error? and also i attached my scriplet file... help me .. thanks in advance ErrorÂfillingÂÂprint... ÂÂjava.lang.ClassFormatError:ÂÂIncompatibleÂÂmagicÂÂvalueÂÂ1768779887ÂÂinÂÂclassÂÂfileÂÂSample_ScripletÂÂnull java.lang.ClassFormatError:ÂÂIncompatibleÂÂmagicÂÂvaluÂ1768779887aÂin aÂclass aÂfile aÂSample_Scriplet Âat a java.lang.ClassLoader.defineClass1(NativeÂÂMethod) at aÂjava.lang.ClassLoader.defineClass(ClassLoader.java:620) Âat Âjava.lang.ClassLoader.defineClass(ClassLoader.java:465) Âat Âit.businesslogic.ireport.ReportClassLoader.loadClassData(ReportClassLoader.java:422) Âat aÂit.businesslogic.ireport.ReportClassLoader.findClass(ReportClassLoader.java:351) Âat aÂjava.lang.ClassLoader.loadClass(ClassLoader.java:306) Âat aÂjava.lang.ClassLoader.loadClass(ClassLoader.java:251) Âat aÂjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Âat aÂjava.lang.Class.forName0(NativeÂÂMethod) aÂat aÂjava.lang.Class.forName(Class.java:242) Âat aÂnet.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:72) Âat aÂnet.sf.jasperreports.engine.fill.JRFillDataset.createScriptlet(JRFillDataset.java:445) Âat Ânet.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:590) Âat aÂnet.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:879) a at aÂnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:708) Âat aÂnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:666) Âat Ânet.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) Âat Ânet.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) Âat Ânet.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234) Âat aÂit.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:752) Âat aÂjava.lang.Thread.run(Thread.java:595) Print Ânot aÂfilled. aÂTry toÂÂuse aÂanÂÂEmptyDataSource...! import net.sf.jasperreports.engine.JRDefaultScriptlet; import net.sf.jasperreports.engine.JRScriptletException; public class Sample_Scriplet extends JRDefaultScriptlet { /** Creates a new instance of JRIreportDefaultScriptlet */ public void afterGroupInit(String groupName) throws JRScriptletException { if (groupName.equals("sales")) { System.out.println( this.getVariableValue("Total_Charge")); BigDecimal Total_Charge = (java.math.BigDecimal)getVariableValue("Total_Charge") ; BigDecimal Total_Tax = (java.math.BigDecimal)getVariableValue("Tot_Tax"); this.setVariableValue("Grand_Total",(java.math.BigDecimal)getVariableValue("Total_Charge")); // this.setVariableValue("AllCities", sbuffer.toString()); } } /** Begin EVENT_AFTER_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ public void afterColumnInit() throws JRScriptletException { super.beforeColumnInit(); } /** End EVENT_AFTER_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ public void afterDetailEval() throws JRScriptletException { super.afterDetailEval(); } /** End EVENT_AFTER_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ public void afterGroupInit(String groupName) throws JRScriptletException { super.afterGroupInit(groupName); } /** End EVENT_AFTER_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ public void afterPageInit() throws JRScriptletException { super.afterPageInit(); } /** End EVENT_AFTER_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_AFTER_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ public void afterReportInit() throws JRScriptletException { } /** End EVENT_AFTER_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ public void beforeColumnInit() throws JRScriptletException { } /** End EVENT_BEFORE_COLUMN_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ public void beforeDetailEval() throws JRScriptletException { } /** end EVENT_BEFORE_DETAIL_EVAL Please don't touch or move this comment*/ /** End EVENT_BEFORE_DETAIL_EVAL This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ public void beforeGroupInit(String groupName) throws JRScriptletException { } /** End EVENT_BEFORE_GROUP_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ public void beforePageInit() throws JRScriptletException { } /** End EVENT_BEFORE_PAGE_INIT This line is generated by iReport. Don't modify or move please! */ /** Begin EVENT_BEFORE_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ public void beforeReportInit() throws JRScriptletException { } /** End EVENT_BEFORE_REPORT_INIT This line is generated by iReport. Don't modify or move please! */ }
-
hai.. i am having one main report and calling two sub report which will return the values. here my problem is i want to add those return value from sub report. while i am adding that value its giving null value example: i am getting return value Total_A and Total_B from two sub report. this two variable are displayed as text field in group footer. when i am adding this field into temp variable called Grand_Total. which result null value.. such as (Grand_Total=Total_A + Total_B) is any beware to slove this problem? help me its very urgent. thanks in advance
-
hai i am unable to catch your point. can you explain with a example..
-
i think u have to write a one java file and convert the java file into jar file and place that jar file into ur ireport path.. i have done like that its working for me
-
In Main report i am connecting my oracle database. i have called my sub report in summary band without connecting data base and with out passing parameter any parameter. example: in my main report i have connected data base and i received fields.. in my sub report i am have having only static text.. so i want to connect the sub report to my main report with out any data base connection.. is it able connect like this?
-
hai good evening to every body.. i can't able view a sub report without datasource connection.. i have created a main report, and i am calling subreport with out any datasource connection and parameters. i can view the main report content only.. i could able to view subreport content.. is there any idea to view that sub report data:(
-
hai good evening to every body.. i can't able view a sub report without datasource connection.. i have created a main report, and i am calling subreport with out any datasource connection and parameters. i can view the main report content only.. i could able to view subreport content.. is there any idea to view that sub report data:(
-
In iReport if we checked the isstyle means that will apply for all text in paragraph na? then how can i use for particular sentence...i am using ireport-1.2.7..can i know how can i use <font>..</font? tag in report
-
I am using iReport 1.2.4. in that I had made report in which some mathematical calculation are involved such as Average, Standard Deviations etc .. NOTE: Following Error had been noticed while doing statistical calculations in I Report, the same Values compared with correct values of statically calculations and sent for your verifications For example: Actual calculation iReport calculation 3.8 3.8 3.7 3.7 3.6 3.6 3.7 3.7 3.6 3.6Average 3.68 3.7 S.D 0.083666 0.1 I am getting different average and standard deviation for the same value.. can any body help me is this bug or some other error.. please any one help me thanks in advance… [file name=error-8ac1c92b36a483be40f3df5eef0decae.doc size=27706]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/error-8ac1c92b36a483be40f3df5eef0decae.doc[/file]
-
I am using iReport 1.2.4. in that I had made report in which some mathematical calculation are involved such as Average, Standard Deviations etc .. NOTE: Following Error had been noticed while doing statistical calculations in I Report, the same Values compared with correct values of statically calculations and sent for your verifications For example: Actual calculation iReport calculation 3.8 3.8 3.7 3.7 3.6 3.6 3.7 3.7 3.6 3.6Average 3.68 3.7 S.D 0.083666 0.1 I am getting different average and standard deviation for the same value.. can any body help me is this bug or some other error.. please any one help me thanks in advance… [file name=error-0d385cd963d0fdbc4213d0783b556586.doc size=4490]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/error-0d385cd963d0fdbc4213d0783b556586.doc[/file]
-
I am using iReport 1.2.4. in that I had made report in which some mathematical calculation are involved such as Average, Standard Deviations etc .. NOTE: Following Error had been noticed while doing statistical calculations in I Report, the same Values compared with correct values of statically calculations and sent for your verifications For example: Actual calculation iReport calculation 3.8 3.8 3.7 3.7 3.6 3.6 3.7 3.7 3.6 3.6Average 3.68 3.7 S.D 0.083666 0.1 I am getting different average and standard deviation for the same value.. can any body help me is this bug or some other error.. please any one help me thanks in advance… [file name=error.doc size=28160]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/error.doc[/file]
-
hai.. yosh thanks for ur reply.. now error is gone. i have include that class file(eg xxxx.class) in chart property-->customizer as "xxxx.class". i have converted this class file as jar file and included in option-->classpath-->addjar->"xxx.jar".. when i am running that "xxxx.jrxml". its give an classnot found error..as "xxx.class" is not found one more thing you have to clarify me.. "Graph name", // chart title "Domain name", // domain axis label "Range name", // range axis label dataset, // can u clarify me.. how to give value for arguments at run time from iReport.. i am using iRepot-1.2.4 thanks in advance:(
-
hi create a variable with same type of text field, and inclued the text field in variable text area.. i am not sure its work or not. just try
-
when i am trying to use this following java code for setting a chart range.. final JFreeChart chart = ChartFactory.createBarChart3D( "Graph name", // chart title "Domain name", // domain axis label "Range name", // range axis label dataset, // data PlotOrientation.HORIZONTAL, // orientation true, // include legend true, // tooltips false // urls ); final CategoryPlot plot = chart.getCategoryPlot(); NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis(); rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); //Now we set the range, for exemple: from 0 to 5 rangeAxis.setRangeWithMargins(0,5); i am getting error: "the type org.jfree.util.public cloneable cannot be resolved. it is indirectly referenced from required class file" can any one help me? thanks in advance
-
:( hello can i know how to include the file "patch" into iReport and JasperReports.. thanks in advance
-
hello sir is there any possible of hyper linking chart.. if it possible can any one suggest me how.?
-
hello sir is there any possible of hyper linking chart.. if it possible can u suggest me how.?
-
i too having same problem.if u aware that please share ur ideas with me
-
just try this. enlarge ur chart width..
-
i too having same problem.. if u got any idea please share ur idea with me.:ohmy:
-
whether any knows that iReport-1.2.7 support drill down?. if it support please share ur idea. give me sample .jrxml file reguarding drill down:(
-
hello to every body. i am currenty using iReport-1.2.7. is iReport-1.2.7 is supporting hyperlink between two file?.as (Reference field). if any body knows please share there idea.. :unsure: