Jump to content
Changes to the Jaspersoft community edition download ×

forhitesh

Members
  • Posts

    54
  • 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 forhitesh

  1. Hi Teodor, I am starting this new thread as per discussion with you. I am putting a page break in summary band which appears on the last page if the number of pages are odd. This works perfectly fine and a blank page appears in the last if number of pages are odd. I am using below condition on print when expression: new Boolean(!( ($V{PAGE_NUMBER}.intValue())%2==0 )) This gets printed on last page because currently it has been put on summary band and summary band is printed in the last. Now, the client requirements have changed and client wants header and footer to be printed on this blank page. I want to put it in detail section so that my page header and page footer can also come on this blank page. I tried to put it on detail section but it does not work because it does not able to recognize the last page as it does in summary. I am using a dummy condition in summary to determine the last page : new Boolean($P{REPORT_PARAMETERS_MAP}.put("LastPageNumber",$V{PAGE_NUMBER}).equals("dummyPrintWhen")) Now, in detail I am putting the condition to determine the last page new Boolean ( $V{PAGE_NUMBER}.equals($P{REPORT_PARAMETERS_MAP}.get("LastPageNumber")) && (!( ($V{PAGE_NUMBER}.intValue())%2==0 )) ) This condition works perfectly fine if I put it in footer section but as per the requirements I want to put it in detail so that the page header and footer can be displayed on the blank page. This trick has been explained in the thread http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=46357 Please help.
  2. I completely agree with you and apologies for that. I am starting new thread for new problem of page break, please give your valuable inputs on new thead. Thanks for all your support on this thread.
  3. I am using version 2.0.5. Is the new line coming at your end? Are you fetching this data "Test Message\nafter the message" from a table or resource file?
  4. Thanks Teodor, I would surely like to have help from Jaspersoft support. Can you please tell me how much do they charge for the support because it is not mentioned on the website? I would request if you can tell me something coming to your mind which might lead to solve this problem so that I can do some self RnD. I need one help from you in this report, actually I am putting a page break in summary band which appears on the last page if the number of pages are odd. This works perfectly fine and a blank page appears. I want to put it in detail section so that my page header and page footer can also come on this blank page. I tried to put it on detail section but it does not work because it does not able to recognize the last page as it does in summary.
  5. I am printing $F{MESSAGE} in detail section which can have a newline character \n, but newline does not appear in this. Plesae refer to the attached jrxml. Data coming in query fiedl $F{MESSAGE} is : "Test Message\nafter the message". I am expecting the text to appear as: Test Message after the messgae
  6. Dear Teodor, Would appreciate your response. Please it's very urgent.
  7. I have maintained a text like "Test Message \nafter the message" in the database table and the same is fetched in the field in query and displayed. Underlining of the text is happening but new line is not appearing in the field element. But when I maintain the same text in resource file and displays it on report the new line appears perfectly. I have set the property isStyledText="true". Please help me to get this resolved.
  8. Hi Teodor, It's humble request to you to reply on my query. I know that I have taken a lot of time and effort of yours for this thread. Actually, this is very urgent and important for our client delivery. I hope you can understand my problem. Please refer to the attached screenshot in which content from detail section are overidding the column footer. Thanks Hitesh
  9. Currently in jasper reports the content gets moved up if the contents placed above are not printing or blank(this is possible by making "remove line when blank","print blank when null", "position type as float"). I am trying to say that is the vice-versa is posible i.e. can the content in the report move down in case the contents below are not printed?
  10. I have a subreport in which three text fields are displayed. All have the property "position type" as Float and "remove line when blank" as true and "blank when null" is also true. Now when any of the text fields is null the fields below it gets moved to upwards. Is it possible that fields gets moved to downwards? Can the content move to downwards direction?
  11. I was trying your solution for controlling the detail band or some other content from above, does not print OVER the column footer on the first page, but it does not fulfill my requirement. Actually I have a master report in which many subreport are placed in the detail band and due to this the detail band spans on more than one pages. The query used in the master report returns only single record so the detail band is executed only once. I tried your solution but it does not fit in this architecture because my detail band does not end at first page and I want the control on first page only. I have attached the master report for your reference. Can you please tell me any other way to handle this?
  12. I understand your point that column footer is not mend for stretching. I have manged to put subreport on column footer because I stretched the subreport upto the maximum size it can expand. I managed to release the space on subsequent pages by using the solution provided in the thread "http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=19573" I would like to say thanks for all your support and assistance. Due to lack of time I was not able to do self RnD much.
  13. Thanks Teodor, I managed to handle this by increasing the size of summary. Thanks for all your support.
  14. I tried to implement your suggestion but when executing the report i got the below error: Attched the jrxml also. net.sf.jasperreports.engine.JRRuntimeException: Subreport overflowed on a band that does not support overflow. at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:1203) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBreak(JRVerticalFiller.java:1294) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBreak(JRVerticalFiller.java:1319) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:578) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:524) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:253) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:895) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:798) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:530) 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(Unknown Source)
  15. It is giving me below error. Attached the jrxml also. net.sf.jasperreports.engine.design.JRValidationException: Report design not vali d : 1. Warning : Element bottom reaches outside band area : y=0 height=1 ba nd-height=0 at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JR AbstractCompiler.java:260) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(J RAbstractCompiler.java:144) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper CompileManager.java:219) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile( JasperCompileManager.java:135) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile( JasperCompileManager.java:94) at ReportCompiler.main(ReportCompiler.java:38)
  16. Can I use resource property like $R{code} as a query parameter?
  17. Thanks for the reply Teodor, I tried your solution and it worked fine. Apologies for not trying it earlier as self RnD. As my other requirement, I want some images and text to be placed in page footer but it should be printed on first page only and the space taken by these elements should be removed on the other pages. I actually tried doing this and found that the elemtns gets printed on the first page perfectly, but the space taken by these elements occur on the subsequent pages due to which a big white space gets generated on every page after first page. Require you valuable inputs.
  18. Thanks Teodor this will surely help. Actually, I want to print blank page when the total number of pages are odd, please let me know how can I know the total number of pages in the generated report.
  19. I want to add a blank page at the last of the report if the number of pages in the report are odd like if number of pages in generated report are 3 then one blank page in the last should be added to make it even. This is required for both side printing. I have page header and footer on the report but I do not want these to be displayed with blank page on last page. Please help.
  20. Thanks Teodor, Last page footer prints after page footer but as per my requirements elements needs to be displayed before the page footer. Please suggest.
  21. I have designed a report in which I have some fields and one image in the column footer. There a condition to on all fields and image using print when expression due to which they are printed only on the last page of report. I have checked the remove line when blank for all elements but there is a space generated between column footer and page footer which is due to the elements placed in column footer. Please suggest how I can control the extra space generating due to the fields.
  22. Is this a bug in iReport? Please let me know so that I will use the old version. Which version of iReport is stable after 2.0.5?
×
×
  • Create New...