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

2005 IR Help

Members
  • Posts

    2,830
  • 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 2005 IR Help

  1. By: Shammi Hettiarachchi - shammif2 still problems with sub reporting(sql server) 2005-12-12 12:23 i've installed a type 4 driver from microsoft still problems with sub reporting (connenection busy htsmt) any one know a jdbc driver fro ms sql which solves my problem.. please help.. shammif2
  2. By: woodchuck - woodchuck5 can the subreport area/dimension be dynamic? 2005-12-12 11:26 hihi all, what i mean is, when we place a subreport in our main report we need to draw out the fixed dimension that the subreport will occupy. however, i believe this area is fixed. i am wondering if it's possible to have the subreport area grow/shrink dynamically (for example, depending on the how much data is given to the detail band for the subreport). thanks in advance! woodchuck By: cfi - delphinecfi RE: can the subreport area/dimension be dynamic? 2005-12-12 11:50 Sure. It can be done. Set the position type to 'Float' in the subreport properties. Doing so would allow the subreport grow dyamically based on the subreport data. -Delphine.V By: woodchuck - woodchuck5 RE: can the subreport area/dimension be dynam 2005-12-12 12:15 thanks, Delphine!! best regards, woodchuck
  3. By: vtzeta - vtzeta How to run a patch? 2005-12-12 09:53 i'm trying to run the patch for iReports 0.5.1 to fix the template structure (so the page info can flow to more than 1 page). does anyone know how i can run the patch? i tried just clicking on it but nothing happened....is there a feature w/in iReports?
  4. By: hillary - wikkitt Subreport Return Value in Chart 2005-12-07 11:06 Ok, I found a way to get a return value from a subreport... But now I need to use that variable in a chart...but nothing is showing up. My series and catagory expressions work. And the variable will work in a text field but not in the chart. I've tried all kinds of combinations as far as evaluation and reset times. Has anyone got this to work? What did you do? Please help! By: hillary - wikkitt RE: Subreport Return Value in Chart 2005-12-12 09:29 Anyone have a suggestion or idea?
  5. By: Motoko2501 - motoko2501 some questions 2005-12-12 07:30 Hi, i have been using iReport for a while and i have some questions because i havent discovered yet how to do some things. 1) Let's supose i have a "count" query that returns fields A, B and C (grouped by C). How can i set a 'field' (for example the one where C is going to be showed) default value to '0' so that this 'field' should remain '0' if i get no count for C from the database for this field. 2) Is there any way to do more than one query for one report? 3) Is there any way to return values from subreports and show them in 'main' reports. 4) How can i make a subreport 'stay' on the place i put it in the 'main' report, it always shows on other places. Well i think this was all, thanks.
  6. By: jem11 - gigio11 space between rows 2005-12-06 12:25 Hi: I have a problem, my detail band has a heigth of 7 and I have a textfield in the detail with a font of 7 and a heigth of 7, I suppose that the interlined (space between rows) has to be 7 but it's 9!! how can i force that the space will be 7 or 8, does anybody how can i do this? thankyou Gigio11 By: Motoko2501 - motoko2501 RE: space between rows 2005-12-12 07:15 insert a blank 'text box' of the size you need.
  7. By: flyfoxlau - flyfoxlau user defined font in eudc.tte can't display 2005-12-12 01:37 hi all, please help me. I defined fonts with winXP's font tools. they will be stored in eudc.tte. when i generate report, the jasper viewer/rtf/excel/html preview can see the fonts display correctly but in the pdf preview mode the user defined font will display as a empty space. By: Remo Fritzsche - remofritzsche RE: user defined font in eudc.tte can't displ 2005-12-12 01:39 Hi You can set for every text-field a different PDF font. There you can select your eudc.tte. Greez Remo By: flyfoxlau - flyfoxlau RE: user defined font in eudc.tte can't display 2005-12-12 03:15 the problem is the field always include fonts from normal font and user defined font but i couldn't set two PDF fonts at the same time. I suspect that it's a problem from itext for there is no problem to generate jasper viewer/rtf/excel/html file.
  8. By: Shammi Hettiarachchi - shammif2 problems with Creating subreports with MS SQL 2005-12-11 12:05 HEllo people i'm an IT student & currently working in a project when i create two seperate reports and compile and Run it's ok. but i cannot link those reports together through subreport tool. when i run the master report it shows only the master report content only. i've used the option "use connection expression" in sub report.then whole report gets an error saying resulset busy htsmt... and so on bla.. bla... when i placed the sub report element in summery section it's ok & doesn't give above error. How can i build a 100% working sub report with IReport 0.5.2. Pleae help me, i've followed all the tutorials and found no answer. if someone can send me some screenshots i'll be greatful. -shammif2@yahoo.com this is the error codes.... -------------------------------------- Error filling print... java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89) at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:675) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:704) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:444) at java.lang.Thread.run(Thread.java:534) NESTED BY : java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89) at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:675) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:704) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:444) at java.lang.Thread.run(Thread.java:534) NESTED BY : net.sf.jasperreports.engine.JRException: Error executing SQL statement for report : sub_report at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:683) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:704) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:444) at java.lang.Thread.run(Thread.java:534) Caused by: java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89) at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:675) ... 3 more NESTED BY : java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89) at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:675) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:704) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:444) at java.lang.Thread.run(Thread.java:534) NESTED BY : net.sf.jasperreports.engine.JRException: Error executing SQL statement for report : sub_report at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:683) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:704) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:444) at java.lang.Thread.run(Thread.java:534) Caused by: java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89) at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:675) ... 3 more NESTED BY : net.sf.jasperreports.engine.JRRuntimeException: Error executing SQL statement for report : sub_report at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:569) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:271) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:311) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:279) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:589) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:229) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:127) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:834) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:705) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:654) at java.lang.Thread.run(Thread.java:534) Caused by: net.sf.jasperreports.engine.JRException: Error executing SQL statement for report : sub_report at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:683) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:704) at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:444) ... 1 more Caused by: java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115) at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89) at net.sf.jasperreports.engine.fill.JRFillDataset.createDataSource(JRFillDataset.java:675) ... 3 more Print not filled. Try to use an EmptyDataSource...!
  9. By: kjwong - kjwong Cannot found Image!!! need help..URGENT 2005-12-06 18:15 Hi, I using iReport 0.3.0 to develop a report. I pass the PARAMETER to Ireport and get the image to disply out.But, the PARAMETER e.g $P{imageBarcode},it is automatic get the image file name in my Java coding. My question is.... how can the report display without error when it cannot find any image file? I means, the report whether is no image found or have image oso can be display out. How can I do it???? By: cfi - delphinecfi RE: Cannot found Image!!! need help..URGENT 2005-12-07 06:17 In the java code itself check for conditions when there is no image. No add a new variable called SHOW_IMAGE in the report design also add another field SHOW_IMAGE. IN the java code when there is no image set SHOW_IMAGE = 0, otherwise, set it to 1. In the report design, for the image element say print when expression as (Integer.parseInt($V{SHOW_IMAGE}.toString()) == 1)?Boolean.TRUE:Boolean.FALSE. This condition would take care of showing the image only when it is present. When adding the variable name in the report design, set Expression to $F{SHOW_IMAGE} and set initial value expression as 0. The type of variable SHOW_IMAGE and the fiels SHOW_IMAGE should be the same. For the type of expression i have used here, use java.lang.String. Hope this helps! By: kjwong - kjwong RE: Cannot found Image!!! need help..URGENT 2005-12-08 20:35 First of all, thank for you immediate feedback. Anyway, the given solution still cannot solve the problem that i have it now. I'm not able to know whether there is an image file in my java code itself. The image file is dynamically generated, eg, $P{barcode}+ $F{officialreceiptdocumentnumber} +".jpg". In certain situation, the system might have official receipt document number, but does not have image file (officialreceiptdocumentnumber.jpg). I just cannot find a way to solve this issue. Hopefully, u can help me on this. Thanks By: cfi - delphinecfi RE: Cannot found Image!!! need help..URGENT 2005-12-09 06:42 In the javacode, since you know 'barcode' and 'officialreceiptdocumentnumber' try doing as shown below. Save the generated image to some directory like C:/APPS/MYAPPS/DATA/<FILENAME> String strFileName = strbarcode + strofficialreceiptdocumentnumber+".jpg"; String strDir= "C:/APPS/MYAPPS/DATA/"; File fImageLoc = new File(strDir); if(!fImageLoc.isDirectory()) fImageLoc.mkdirs(); String strImage = strDir + strFileName; File fImageFile = new File(strImage); if (!fImageFile.exists()) { // here set SHOW_IMAGE to "0" } else { // here set SHOW_IMAGE to "1" } Hope this helps. -Delphine.V
  10. By: antobuccia - antobuccia HELP PLEASE: how assign a costant? 2005-12-02 02:29 Hello, I want to read from query a single value to put in a costant in a report to use it. For xample I read from query: a b---> I want to store in a costant c d at the end I want to read "b" How I can obtain this? Help help help thanks By: spalazzi - spalazzi RE: HELP PLEASE: how assign a costant? 2005-12-02 06:06 Hi If you read a value before run report you put a value into param like this: Map parameters = new HashMap(); parameters.put("paramYourValue",yourValue); byte[] bytes = JasperRunManager.runReportToPdf( reportFile.getPath(), parameters, connessione ); and in a report you use this parameter. If you read a value from report data source you can use a Scriptlet. Into an appropriate method you read a value from data source: String park=(String)this.getFieldValue("YourField"); and put this into report variable like this: this.setVariableValue("YourVariable",park); Sorry for my terrible english By: David Karnowski - karnowski RE: HELP PLEASE: how assign a costant? 2005-12-02 06:08 Is it a constant, or does it change for every row? If the constant changes for every row then you can just get it as: $F{<field_name>} If there is only a specific row that should be saved as a constant then you need to define a variable (let's call it "testval") that has an expression like this: $F{QUERY_COL}.equals("b")?$F{QUERY_COL}:$V{testval} You then refer to your "constant" as $V{testval} By: antobuccia - antobuccia RE: HELP PLEASE: how assign a costant? 2005-12-09 06:11 I use this SCRIPTLET to take a specifica value from a datasource (an idexed value) import java.util.ArrayList; import net.sf.jasperreports.engine.JRDefaultScriptlet; import net.sf.jasperreports.engine.JRScriptletException; public class Elements extends JRDefaultScriptlet{ ArrayList al = new ArrayList(); public int addElement(Object o)throws JRScriptletException { al.add(o); return 1; } public Double getElementAt(int index)throws JRScriptletException{ return (Double)al.get(index); } } ----------------------------------------- use this to capture a value: (((Elements)$P{REPORT_SCRIPTLET}).getElementAt($P{nr_value}.intValue())) ----------------------------------------- I want to store this value in a variable but: java.lang.IndexOutOfBoundsException: Index: 2, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:508) at java.util.ArrayList.get(ArrayList.java:320) at Elements.getElementAt(Elements.java:15) at report_test.evaluate(report_test:175) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:461) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:147) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:576) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:210) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:118) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:550) at java.lang.Thread.run(Thread.java:536) --------------------------------------- instead in a parameter it doesn't goes in error,but when I want to show it I have null
  11. By: macoute3 - macoute3 my parameter is a new instance of an object 2005-12-09 01:42 in a template, I use a parameter with a custom type: com. .... .myengine.TemplateResolver. As follow, the definition of TemplateResolver: public interface TemplateResolver { public InputStream get(String compiledTemplateName) throws Exception; } And the implementation: public class ClientTemplateResolver implements TemplateResolver { public InputStream get(String compiledTemplateName) throws Exception { nputStream inputStream = new FileInputStream("/workspace/reports/" + compiledTemplateName + ".jasper"); return inputStream; } } If, I put the default value to: new com. .... .myengine.ClientTemplateResolver(), this works fine, but if I prompt an other value (with no default value), the TemplateResolver seems to be not instanciate. why? Thanks for your response.
  12. By: shilan - shilan iReport LogFactory.java:543 2005-12-02 00:52 hello site:) i have had this error for a long time and that is i work on a swing base project, and i report as reporting tool when i run the reports from the idea environment everything is ok, but i've made a jar file from the whole project to deploy it, and i get this error Exception occurred during event dispatching: java.lang.ExceptionInInitializerError at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:113) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at net.sf.jasperreports.engine.JasperManager.fillReport(JasperManager.java:692) at list.ListUI.btnAll_actionPerformed(ListUI.java:434) at list.ListUI_btnAll_actionAdapter.actionPerformed(ListUI.java:546) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227) at java.awt.Component.processMouseEvent(Component.java:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140) at java.awt.Dialog.show(Dialog.java:538) at factor.FactorUI.btnList_actionPerformed(FactorUI.java:262) at factor.FactorUI_btnList_actionAdapter.actionPerformed(FactorUI.java:354) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227) at java.awt.Component.processMouseEvent(Component.java:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140) at java.awt.Dialog.show(Dialog.java:538) at NazirMainGUI.jMenuItem10_actionPerformed(NazirMainGUI.java:329) at NazirMainGUI_jMenuItem10_actionAdapter.actionPerformed(NazirMainGUI.java:502) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390) at net.sf.jasperreports.engine.fill.JRBaseFiller.<clinit>(JRBaseFiller.java:250) ... 81 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543) ... 84 more although i have included the required jar files of iReport! thanks in advance for your care By: Giulio Toffoli - gt78 RE: iReport LogFactory.java:543 2005-12-06 09:43 It seems a problem with the jar common-logging*.jar Nerver seen it. Giulio By: shilan - shilan RE: iReport LogFactory.java:543 2005-12-08 23:11 thanks for your answer but what can i do with this commons-logging should i place this jar file somewhere special or something?! any idea please
  13. By: vtzeta - vtzeta Detail info needs to flow to multiple pages 2005-12-08 10:19 the information displaying in the detail section is longer than 1 page. how do i get that info to float to the second page? right now, my txt fields all have "float" and "stretch with overflow" selected. while this eliminated the empty white space, it won't flow onto a 2nd page.
  14. By: vtzeta - vtzeta Import .pdf file into iReports 2005-12-08 10:18 i need to import a .pdf file into iReports, similar to using the insert image function. however, when i tried to insert image using the .pdf file, it didnt work.
  15. By: pubDispName - mellino SUBREPORT RETURN VALUES has not solution yet 2005-11-30 02:08 I'm waiting since this summer but i never see an example that works. Please, if exists someone update the forum! Bye good work. By: hillary - wikkitt RE: SUBREPORT RETURN VALUES has not solution yet 2005-11-30 14:22 Same here, I have tried everything I can think of to return a subreport value and get NOTHING. I have even tried changing the jrxml file directly and still get null. This would make my life much easier. Anyone have a solution? By: hillary - wikkitt RE: SUBREPORT RETURN VALUES has not solution 2005-12-02 07:18 Does anybody know how to do this? Do you know who might? I've crawled the web and can't find anything that works. Any help would be great! By: wni - wni RE: SUBREPORT RETURN VALUES has not solution 2005-12-08 01:43 Download jasperreports-1.1.1-project Look at the demosamplessubreport This works for me
  16. By: ginia - ginia_patel problem regarding hyperlink!!!!!!!! Pls help 2005-12-07 03:16 hi, i have a problem in regarding hyperlink. in my report on CLICKING a HYPERLINK say EMPLOYEEID a new REPORT should be OPENED which DISPLAYS its DETAILS. how can this be done. i m using jasperreports in jsp. will be really very thankful if i get help. hoping for the best. thank you By: cfi - delphinecfi RE: problem regarding hyperlink!!!!!!!! Pls help 2005-12-07 06:08 In the text field properties, in the hyperlink tab, set hyperlink type -> Reference, and the Hyperlink Reference Expression should be $P{ParameterName_Of_Hyperlink_Used_IN_JSP_FILE}. Also do not forget to add ParameterName_Of_Hyperlink_Used_IN_JSP_FILE to the parameters list By: ginia - ginia_patel RE: problem regarding hyperlink!!!!!!!! Pls help 2005-12-07 21:30 hi, but in the Hyperlink Reference Expression i need to specify the address of the jsp page i open as "http://localhost:8080/report/subreport.jsp?EmployeeId=+$F{EmployeeId}" and in this page which gets opened i need to execute a query like "select * from table where employeeid=$P{EmployeeId}" where $P{EmployeeId} is a the value on which clicked i should get the second page i.e one specifeid above. how to do this.Please do help me.Thank u. By: java_user - deepakglobal RE: problem regarding hyperlink!!!!!!!! Pls help 2005-12-07 21:45 hii .. can u tell me exactly u want to do .. i think i can help u out in this .. mail me on deepakglobal@yahoo.com
  17. By: Pavel A. Zvyagin - pzvyagin iReport 0.5.2 vs. IBM DB2 7.1 2005-12-02 00:18 I get this: java.lang.AbstractMethodError: COM.ibm.db2.jdbc.app.DB2PreparedStatement.setFetchSize(I)V at it.businesslogic.ireport.gui.ReportQueryDialog$FieldReader.run(Report QueryDialog.java:416) when trying to "Read fields" in the Report query dialog. Nevertheless, when running the report from within iReport everything works just fine. Adding db2java.zip provided by IBM to the classpath seems to change nothing. What's the problem? By: Giulio Toffoli - gt78 RE: iReport 0.5.2 vs. IBM DB2 7.1 2005-12-06 09:45 try to update your JDBC driver Let me know Giulio By: Pavel A. Zvyagin - pzvyagin RE: iReport 0.5.2 vs. IBM DB2 7.1 2005-12-07 21:12 We've installed FixPack 14, but we're still getting this error. DB2 v7 is no longer supported by IBM, so there will hardly be any updates after FixPack 14.
  18. By: Thomas Ludwig Kast - tomkast JRChartDesign from one chart type to another 2005-12-07 16:03 hi, i need to change chart types at runtime in a web app (lets a user preview their data using different chart types). i am in the process of writing a transformation class. do you already have anything like this? for example, transforming a bubble chart into a bar chart - bubblechart::xValueExpression would be assigned to barchart::catagoryExpression bubblechart::yValueExpression would be assigned to barchart::valueExpression etc... thanks - tom
  19. By: satommo74 - satommo74 Rounding off a variable 2005-12-07 06:37 I have a variable called totalCost (of type java.lang.Double) that adds up the total cost of a list of items. Is there a way I can round the answer to 2 decimal places, eg:24.52 instead of it being 24.52102757
  20. By: kala - kalakala Textfield height depending on the length 2005-12-07 02:09 Hi! I have a textfield, and I want the height of the textfield grows with the length of the string of the field. I have used the property RelativeToTallestObject and RelativeToBandHeight, but it isn't working. Can you help me? Thanks in advance! By: cfi - delphinecfi RE: Textfield height depending on the length 2005-12-07 06:01 Set teh textField property to 'Float' and check 'Stretch with overflow'. This should work for sure.
  21. By: java_user - deepakglobal help with hyperlink /subreport 2005-11-29 01:59 hi , i m using ireports to generate a report . i want to add a hyperlink on that report. and when i click the hyperlink , it should open a new window and populate that window from database . i need to pass parameter which is on the report already generated . thanks in advance . please help .. dee By: ginia - ginia_patel RE: help with hyperlink /subreport 2005-12-07 03:21 HI, IF U GET THE SOLUTION PLEASE DO TELL ME ALSO . WILL BE REALLY THANKFULL. MY MAIL ID IS giniapatel@gmail.com. thanku
  22. By: Edward Mann - emann if else "and or" 2005-10-04 13:30 I have a report that is getting some data from a database. The fields that i have are money fields. However some have 0 as a value and some are blank/null and others actually have a value in them. When the field is blank/null or just have a 0 in them i don't want them to print. I have spent a few hours reading through the mailing lists and other sites, but i just cannot figure out how to write an expression that will report what i want. i want something like this if ($value != "") || ($value != "0") { print the field } Any hints? Thanks. By: Wal Millard - walmillard RE: if else "and or" 2005-10-04 16:59 Edward, the "if" statement implemented in ireport/jasper report is the java in-line if. (Condition)?(boolean.TRUE result):(boolean.FALSE result) the ? and the : are the key operators. for the zero amount use something like this $F{myDollar}.doubleValue() == 0?(" "):($F{myDollar}) this will print a single space instead of 0. NOTE if you are using a float type you would have to use floatValue() instead of doubleValue(). now if you want to combine more than one condition, say for null, you can nest the if statements in either the TRUE or FALSE result. $F{myDollar}.doubleValue() == 0?(" "):$F{myDollar} == null?(" "):$F{myDollar} for a "null" value you should be able to set the check box "blank when null" so the text "null" is not displayed. luck walmillard By: Edward Mann - emann RE: if else "and or" 2005-10-04 20:32 walmillard, Thanks for the reply. I did a google on that java in-line if and found some information. Howerever i am still at a loss. I tried what you suggested, howerver the error i am getting when i compile the report is. "Print When Expression: Incompatible conditional operand types String and Double" I have entered your example the exact way you have it typed, just changing out the Field value with my own. Which my field value is of a type java.lang.Double $F{Total_Exp_PSF}.doubleValue() == 0?(" "):($F{Total_Exp_PSF}) I am putting this in Text.field.expression is that right? I have set it to not print when null. Now i just need to keep it from printing when the value is just 0. I am new to all this, and i appreciate the help very much. Thanks. By: JenJo - jenjo RE: if else "and or" 2005-12-06 08:57 Hi Just wanted to check, did u ever solve this problem? As i am getting the same error and not sure where else to put it if not in a text. field.expression? Thanks By: PhreddNet - phreddnet RE: if else "and or" 2005-12-06 10:05 The problem with the "if" statement is that it returns two different value type, one String the other Double. Add ".asString()" to the end of the Double value to get the same object types. (or convert the String to a Double if you are brave enough). A better solution would be to set the "Print when expression" value for the field to the following "($F{myDollar}!= null)&&($F{myDollar} != 0)".
  23. By: Rivka Shisman - rivka_shisman Usage of JavaBeans set DataSource 2005-12-06 06:24 hello all, Is the "JavaBeans set DataSource" functionality inplemented in the current vwesion? Can you please help me with using it for a Collection? what do i need to use it? what should i fill in the iReport wizard? Thanks a lot Rivka By: Giulio Toffoli - gt78 RE: Usage of JavaBeans set DataSource 2005-12-06 09:50 You can't use the wizard to create a JavaBean based datasource yet. Create an empty document and open the query tool to extract fields from a bean. Giulio
  24. By: psilva - aloiziops2006 Page break at report 2005-12-06 09:49 How I can include a page break at detail session?
  25. By: spalazzi - spalazzi Custom field like "Page X of Y" or "Total"... 2005-12-01 02:04 Hi Is possible implement a custom library objects with a new personal fields like "Page number", "Total pages" and "Page X of Y"? Thanks By: hillary - wikkitt RE: Custom field like "Page X of Y" or "Total 2005-12-01 06:54 iReports has two system variables PAGE_COUNT and PAGE_NUMBER that already do that for you. create a textfield in the page footer band with an expression like this: "Page " + $V{PAGE_NUMBER} + " of " + $V{PAGE_COUNT} By: spalazzi - spalazzi RE: Custom field like "Page X of Y" or "Total"... 2005-12-01 08:34 I know but i want create a custom variable like "Page X of Y" to use in all report. I'm italian and i want "Pagina X di Y" not "Page X of Y". By: Giulio Toffoli - gt78 RE: Custom field like "Page X of Y" or "Total 2005-12-06 09:49 Modifica l'espressione all'interno dei due campi creati con trascinando il campo speciale Page X of Y Giulio
×
×
  • Create New...