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

erer

Members
  • Posts

    19
  • 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 erer

  1. to be more specific, the detail band in subreport that is forced to start on new page (because of splitAllowed = false) is missing only couple of instances.

    for examlpe I have subreport that prints nominals.

     

    when master's detail splitAllowed = true then:

    Nominals: // <----- this is columnHeader in subreport
    200 - 5 // <----- this is detail in subreport
    100 - 28
    50 - 10
    <here's page split>
    20 - 10
    10 - 15

    when master's detail splitAllowed = false then:

    <the ending of this page is blank>
    <here's page split>
    Nominals: // <----- this is columnHeader in subreport
    20 - 10
    10 - 15

     

    My guess is that filling proces when reaches end of page, forces subreport to be generated on next page from begining, but doesn't set the source of the subreport back to start and this indicates that source iterates further instead from begining.

     

    best regards - erer

     

    Post edited by: erer, at: 2008/05/08 18:06

    Post edited by: erer, at: 2008/05/08 22:24

  2. problem still exist.

     

    This is the exception i get on JBoss

     

    19:29:19,821 ERROR [JRThreadSubreportRunner] Fill 29776097: exception
    java.lang.InterruptedException
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:485)
    at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.suspend(JRThreadSubreportRunner.java:189)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.suspendSubreportRunner(JRBaseFiller.java:1994)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.addPage(JRHorizontalFiller.java:1257)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillPageBreak(JRHorizontalFiller.java:1330)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillGroupFooter(JRHorizontalFiller.java:784)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillGroupFooters(JRHorizontalFiller.java:748)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReportEnd(JRHorizontalFiller.java:295)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReport(JRHorizontalFiller.java:124)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:891)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:814)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:523)
    at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:63)
    at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:209)
    at java.lang.Thread.run(Thread.java:619)
  3. HI there.

     

    I've encountered a problem with detail band im my subreport. I made a report that has dynamic number of subreports. Subreport is placed in detail band, and as a source i give parameters, source and design for each rekord. I hope this is clear to understand.

    Now, I have weird problem. When I unselect splitAllowed on that detail band that contains subreport, then if subreport begins on new page there is no subreport's detail band. Simply it's not shown and even there is no space where it should be.

    Does anyone knows why this is happening. I can't give you jrxml beacuse I dont, have any.

     

    best regards - erer

    ps. excuse my grammar :) I know it's not perfect :)

  4. well :) it's to bad that there's no possibility to do those optimizations. I need to replace some special marks in JasperPrint and the only way I figured is to export it to xml, replace those marks and reload my JasperPrint variable. Serialization doesn't do the trick :D

    I just need to change everyting else to avoid the replacemnt :)

    Thanks anyway - erer

    Post edited by: erer, at: 2008/04/14 11:05

  5. Hi, I've noticed a strange thing. I did simple test about how big te JasperPrint object is.

     

    I generated report and it's size was 3,2 MB.

    Then I exported it to XML using :

    JasperExportManager.exportReportToXmlFile();

    and load it again to variable using:

    JRPrintXmlLoader.load();

    After that the size of JasperPrint was 22,3 MB.

     

    How can it be?? Because of that I couldn't generate report of about 130 pages. When I tried I've got OutOfMemoryException.

    When I skipped the part of code when I export the JasperPrint and load it again, I generated report of about 1440 pages without problem.

     

    Thanks, erer

  6. That's not that either. First, I have ale of these fields printed in report as Double and they are printed correctly and there is no exception. Second, I have converter to Double, that for sure returns Double and then those values goes to fill process. So that's not the problem for sure.

     

    I don't really know what's going on, because i can't view source at the moment. I tried almost everyting that came to my head. Still it doesn't work.

     

    Please, help someone :P

    best regards - erer

     

    ed: PS. for clearance. In database those fields are numeric, retrieved from it as BigDecimal, and converted to Double. That for sure works fine.

     

    ed2: Problem solved. All beacuse m stupidity :P Expression above is ok. For the first time my datasource has column names all messed up. That was the problem. Values were put to datasource in strict order, but names of the collumns were in diffrent order and group name was instead of grup value and so on.

     

    best regards - erer

    Post edited by: erer, at: 2008/03/27 11:15

  7. Hi. I have a little problem with expression in variable.

    Code:
    	<field name="Realizacja1" class="java.lang.Double"/>
    <field name="Realizacja2" class="java.lang.Double"/>
    <field name="Realizacja3" class="java.lang.Double"/>

    <variable name="SumaRealizacjiAll" class="java.lang.Double" resetType="Report" calculation="Sum">
    <variableExpression><![CDATA[Double.valueOf($F{Realizacja1}.doubleValue()+$F{Realizacja2}.doubleValue()+$F{Realizacja3}.doubleValue())]]></variableExpression>
    <initialValueExpression><![CDATA[new Double(0.0)]]></initialValueExpression>
    </variable>

     

    from that expression when I try to fill report I get

    Code:
    [code]Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
    Source text : Double.valueOf($F{Realizacja1}.doubleValue()+$F{Realizacja2}.doubleValue()+$F{Realizacja3}.doubleValue())
    at net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:257)
    at net.sf.jasperreports.engine.fill.JRCalculator.evaluateEstimated(JRCalculator.java:528)
    at net.sf.jasperreports.engine.fill.JRCalculator.estimateVariables(JRCalculator.java:173)
    at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:780)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1417)
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReport(JRHorizontalFiller.java:115)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:891)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:814)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:523)
    at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:63)
    at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:209)
    ... 1 more
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Double

     

    I tried this using new Double() instead of Double.valueOf() but it didn't work either.

    Anyone knows the sollution of this problem?

  8. Yes, it's possible :) You have to change PDFEncoding parameter to Cp1250 in your design. You should do that for each text element in design. It should work just fine.

    If you want to use Courier font, then if you using Adobe Acrobat Reader you may find that there is no polish letters in PDF. That's the reader problem, because it's using fonts included in Reader's directory. There are 2 solutions to that:

    1) delete the fonts in reader directory

    2) use different reader for example: Foxit Reader

    best regards - erer

  9. Hi, I've problem since iReport > 1.2.3 when i double click on JRXML file i have an error "Could not find the main class. Program will exit"

    What is wrong? I have no idea, but when I get back to iReport 1.2.3 the problem is gone.

    BTW, 1.2.3 version was the first iReport version that i've installed, maybe it has something to do with that.

     

    Thanks for any reply

    Best regards - Emil

  10. Hello, I have a problem that I don't know how to solve

    I have data in section detail that can be grouped in 3 sections. The first one can't be splitable. How can i do this?

    For better understanding i make example

    first section - first record (unsplitable)

    second section - first record

    third section - first record

    first section - second record

    second section - second record

    third section - second record

    and so on....

     

    Thanks for any help. Best regards - Emil

×
×
  • Create New...