Jump to content

kaunietiss

Members
  • Posts

    43
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by kaunietiss

  1. ok, i'm adding an archive with all my jrxml files because i'm not sure which ones of those may cause my problem and which ones not.

    And it may look a bit messy and difficult to understand sometimes because i always have to add something new to my report and do other changes. Sorry for that:)

    [file name=report-7eae474e588854c7a18f9c6ad7309533.zip size=30525]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/report-7eae474e588854c7a18f9c6ad7309533.zip[/file]

     

    oh, and the main report is SFPage.jrxml

    Post edited by: kaunietiss, at: 2007/05/15 14:22

  2. so, one_page.pdf is looking ok with some free space at the bottom but if i just add one more line to the detail band i get two pages (two_page.pdf). Now i set the height of my pageFooter to 0 and i even add 5 more lines to my report and i still gave everything in a single page (one_page_wo_pageFooter.pdf).

    So where is my problem here?

    [file name=pdf_report.zip size=12728]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/pdf_report.zip[/file]

    Post edited by: kaunietiss, at: 2007/05/09 15:49

  3. ok, i'll try to explain...

    let's say i have a report which has several records and all those records and all other bands fits into a single page and there is still some free space between detail and lastPageFooter bands. So i add one more record to my report and now i see that my report contains 2 pages, though there was some free space in the report.

    The next thing what i do is removing the pageFooter band. And now my report fits in a single page again and i even can add some more records to the report and it still contains one page. But after i just add pageFooter again, the report doesn't fit into a single page.

    So, i just thought that a free space between detail and lastPageFooter may be taken by pageFooter even though it's not printed.

    I hope you understand my problem and will be able to help.

  4. hi,

    i'm using both pageFooter and lastPageFooter in my report. And it seems that in the last (or the only) page where lastPageFooter is being printed i get some white space which is caused by pageFooter even if it is not being printed on that page. If i remove the pageFooter the white space disapears. Nayone could help with that?

  5. lucianc wrote:

    When you pass a data source to a subreport, the entire data source gets exhausted (i.e. all the rows are consumed), not only the first row in the data source. Your data source is the map vector, therefore the subreport would consume the entire vector, not just the first map.

    You need to pass a fresh data source each time the subreport gets instantiated. For example, if $P{SubreportData} is a collection of maps, you can create a new data source based on it for each subreport instantiation:
    <dataSourceExpression>new JRMapCollectionDataSource($P{SubreportData})</dataSourceExpression>

    The alternative I mentioned was to rewind the data source for the subreport in the scriptlet (that is, if your data source is rewindable). For example, if you provide the data source for the subreport using a parameter named "SubreportDataSource", you can do the following in the report scriptlet's beforePageInit() method:
    ((JRRewindableDataSource) getParameterValue("SubreportDataSource")).moveFirst();

    HTH,
    Lucian

     

    and my $P{SubreportData} is a type of JRDataSource and if i write new JRMapCollectionDataSource($P{SubreportData}) i got the error:

     

    Code:

    [jrc] Compiling 1 report design files.
    [jrc] File : E:JAVAPROJECTSjMonarchreportsSFPage.jrxml ... FAILED.
    [jrc] Error compiling report design : E:JAVAPROJECTSjMonarchreportsSFPage.jrxml
    [jrc] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

    [jrc] 1. The constructor JRMapCollectionDataSource(JRDataSource) is undefined

    [jrc] value = (net.sf.jasperreports.engine.JRDataSource)(new JRMapCollectionDataSource (((net.sf.jasperreports.engine.JRDataSource)parameter_SFStatementListData.getValue())));

    [jrc] <-------------------------------------------------------------------------------------------------------------------->

    [jrc] 2. The constructor JRMapCollectionDataSource(JRDataSource) is undefined

    [jrc] value = (net.sf.jasperreports.engine.JRDataSource)(new JRMapCollectionDataSource (((net.sf.jasperreports.engine.JRDataSource)parameter_SFStatementListData.getValue())));

    [jrc] <-------------------------------------------------------------------------------------------------------------------->

    [jrc] 3. The constructor JRMapCollectionDataSource(JRDataSource) is undefined

    [jrc] value = (net.sf.jasperreports.engine.JRDataSource)(new JRMapCollectionDataSource (((net.sf.jasperreports.engine.JRDataSource)parameter_SFStatementListData.getValue())));

    [jrc] <-------------------------------------------------------------------------------------------------------------------->

    [jrc] 3 errors

    [jrc]
    [jrc] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)
    [jrc] at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)
    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)
    [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109)
    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)
    [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)
    [jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [jrc] at org.apache.tools.ant.Task.perform(Task.java:364)
    [jrc] at org.apache.tools.ant.Target.execute(Target.java:341)
    [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:673)
    [jrc] at org.apache.tools.ant.Main.startAnt(Main.java:188)
    [jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    [jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

    BUILD FAILED
×
×
  • Create New...