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

kaunietiss

Members
  • Posts

    43
  • 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 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. and how the report itself knows when to use lastPageFooter instead of pageFooter?
  5. and why this one didn't work for you? did you get any kind of error?
  6. Code:condition ? <style backcolor="red">$F{field}</style> : $F{field} and dont forget to check "Is styled text" checkbox in "Fonts" tab in the field properties.
  7. maybe this will help you... http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=9&id=23992#23992
  8. http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&catid=8&id=24134#24134
  9. kaunietiss

    Dates..

    how about this... Code:new SimpleDateFormat("MM/dd/yy"«»).parse("05/18/05"«»);
  10. $F{GIO}.substring(36,36) the lenght of this substring is 0. Try $F{GIO}.substring(36,37)
  11. 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?
  12. do you use the same font type and same line spacing?
  13. Hi, I want few things to be visible in the preview of the report but i don't want them to be printed. Is there any way to do it? Tadas
  14. you should better upload your jrxml files. and maybe try to set the position type of your fields to Float.
  15. and how it should look if i need let's say Lithuanian and Latvian locales?
  16. and whats wrong with using pageFooter and lastPageFooter?
  17. finally, i've solved my problem with scriptlet. lucianc, thank you very much for all your help:)
  18. 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
  19. Code:new Double ($P{Param_1}.doubleValue() + $P{Param_2}.doubleValue())
×
×
  • Create New...