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

javapedant

Members
  • Posts

    25
  • Joined

  • Last visited

javapedant's Achievements

Explorer

Explorer (4/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I found a similar example as you have told above. When I try to implement the o/p is still the same. A new page is being created for each row in the data source. And so 4 pages are being created. I understand it should be in 1 page..But unable to figure why multiple pages are being created. Any idea ??
  2. Ohh..Thanks for the reply agn. Ok. I'm doing the same thing. But do I need to pass this as a datasource to my main reoprt or the subreport. And if it is to the main report..How about the other collections..do i need to have everything into the same bean ? Post Edited by javapedant at 11/13/2009 15:16
  3. Thank you for your reply. I started making a subreport for displaying my collection. But i'm not sure wether to pass my collection through the main rreport datasource. DO I actually need to create a new datasource for subreport??
  4. Thank you for the reply. I used this code and tried to generate the report. I have a total 10 documents. But unfortunately a new page is created for every record(for each document). But I want to display all of them in one single page. Can you please let me know what the mistake i'm doing
  5. Thanks for the reply. SO do you mean need to convert all my fields in a row to string and pass ??
  6. Hi I have five collections that are to be passed to my report and displayed in five different locations in my report. I have to use only the JRDataSource. So how do i achieve it ? Can anyone please help me with a code sample
  7. Hi I have a collection that is to be passed to the report for displaying. When I pass the collection through JRMapCollectionDataSource, the entire report is being generated for each row of the collection. But I want to display all the rows in the same area . I'm sorry if my english is poor. But please go through the attached files and i'm sure u'll understand what i mean. Attached are my files java file - GenerateReports.java JRXML - FlightReport.jrxml PDF report i'm able to generate currently : FlightReport.pdf My required output : show.bmp ( which i'm desperately in need of ) Please help me with a possible solution. Thanks in Advance Post Edited by javapedant at 11/10/2009 21:38 Post Edited by javapedant at 11/10/2009 21:38 Post Edited by javapedant at 11/11/2009 22:53
  8. Yes IT IS inside the <detail> !!! Post Edited by javapedant at 11/10/2009 20:47
  9. Hi. I have a collection in my java code. Now i want to display this on ireport. I'm using a JRMapCollectionDataSource to pass the data to my ireport Here is my Java COde HashMap<String, String> docsreceived = new HashMap<String, String>(); for (DocumentName doc : splclass.getDocumentNames()) { docsreceived.put("document", doc); } I'm passing this through JRMapCollectionDataSource In my JRXML i have the code : <field name="document" class="java.lang.String"/> <textField isStretchWithOverflow="true"> <reportElement stretchType="RelativeToBandHeight" x="12" y="25" width="100" height="24" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{document}]]></textFieldExpression> </textField> As per my understanding after following a few examples, It should display all the values from the collection in a column. But unfortunately I'm getting each each document name in a different page. I want to compel it to display all the values in one page. Please help me in fixing this THanks in Advance
  10. Hi. I have a collection in my java code. Now i want to display this on ireport. I'm using a JRMapCollectionDataSource to pass the data to my ireport Here is my Java COde HashMap<String, String> docsreceived = new HashMap<String, String>(); for (DocumentName doc : splclass.getDocumentNames()) { docsreceived.put("document", doc); } I'm passing this through JRMapCollectionDataSource In my JRXML i have the code : <field name="document" class="java.lang.String"/> <textField isStretchWithOverflow="true"> <reportElement stretchType="RelativeToBandHeight" x="12" y="25" width="100" height="24" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{document}]]></textFieldExpression> </textField> As per my understanding after following a few examples, It should display all the values from the collection in a column. But unfortunately I'm getting each each document name in a different page. I want to compel it to display all the values in one page. Please help me in fixing this THanks in Advance Post Edited by javapedant at 11/06/2009 17:08 Post Edited by javapedant at 11/06/2009 17:08 Post Edited by javapedant at 11/06/2009 17:45 Post Edited by javapedant at 11/09/2009 16:45
×
×
  • Create New...