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

learningjasper

Members
  • Posts

    2
  • Joined

  • Last visited

learningjasper's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. hi. I am using Fast report Builder for my report. Here is my code for this DynamicReportBuilder drb = new DynamicReportBuilder(); ColumnBuilder colBuilder = ColumnBuilder.getNew() .setStyle(detailStyle) .setColumnProperty((String) key, String.class.getName()) .setTitle((String) header) .setWidth(width) .setImageScaleMode(ImageScaleMode.NO_RESIZE); AbstractColumn col = colBuilder.build(); drb.addColumn(col); and below is the code for my "detailsStyle" StyleBuilder styleBuilder=new StyleBuilder(false,"detailStyle"); styleBuilder.setBorder(Border.THIN); styleBuilder.setHorizontalAlign(HorizontalAlign.LEFT); styleBuilder.setVerticalAlign(VerticalAlign.BOTTOM); Style detailStyle=styleBuilder.build(); According to the piece of code styleBuilder.setHorizontalAlign(HorizontalAlign.LEFT); The elements in my col should be left aligned. But when i tried my report in IE, the elements were center aligned. Out of curiosity i did a view source and found that there is no alignment params found in the <td> unlike those columns who were set to be right aligned. Is there any work around for this?? Code: DynamicReportBuilder drb = new DynamicReportBuilder(); ColumnBuilder colBuilder = ColumnBuilder.getNew() .setStyle(detailStyle) .setColumnProperty((String) key, String.class.getName()) .setTitle((String) header) .setWidth(width) .setImageScaleMode(ImageScaleMode.NO_RESIZE); AbstractColumn col = colBuilder.build(); drb.addColumn(col);------------------------------------------------------------------------------- StyleBuilder styleBuilder=new StyleBuilder(false,"detailStyle"); styleBuilder.setBorder(Border.THIN); styleBuilder.setHorizontalAlign(HorizontalAlign.LEFT); styleBuilder.setVerticalAlign(VerticalAlign.BOTTOM); Style detailStyle=styleBuilder.build();
  2. Hi. In my report i need some custom fields. For example we can take the column "week". In my database the values are in integer format. I need feth them from the DB and parse them as <nth week of MONTH_NAME YEAR>. for that i have a set of custom formatter methods which takes the resultset as input and parse them to the desired formats. As a result i get a List<Map<String, Object>>. and then i pass this List to the JRDataSource. Everything works fine for small reports. But when the report becomes large (around 1 million records) it runs for quite a long time and then throws "out of memory" exception while filling the report. Am i doing anything wrong? Or is there any work around for this? I have already tried virtualizer and increased the JVM memory. Thanks n Regards. Ansh. Code: Post Edited by learningjasper at 07/29/2010 07:12
×
×
  • Create New...