dheerajjoshim's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
New Members
Active Posts:
5 (0 per day)
Joined:
08-June 10
Profile Views:
4,556
Last Active:
User is offline May 09 2014 03:00 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Ford
Dream Kudos:
0
Icon   dheerajjoshim has not set their status

Posts I've Made

  1. In Topic: Create Sub report using Jasper API

    Posted 9 May 2014

    This can be done as following.
    Put the sub report inside a band and then append the band to main report

    band = new JRDesignBand();
    band.setHeight(250);
    band.setSplitType(SplitTypeEnum.STRETCH);
    
    JRDesignSubreport jSubreport = new JRDesignSubreport(jasperDesign); 
    jSubreport.setUsingCache(false); 
    jSubreport.setRemoveLineWhenBlank(true); 
    jSubreport.setPrintRepeatedValues(false);
    
    JRDesignExpression expression = new JRDesignExpression();
    expression.setText("new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{time})");
    jSubreport.setDataSourceExpression(expression);
    
    expression = new JRDesignExpression(); 
    //Use compiled .jasper sub report file
    //Note Path should be within double quote. Like below "\"xxxxx\""
    expression.setText("\"/path/to/sub.jasper\"");
    
    jSubreport.setExpression(expression);
    band.addElement(jSubreport);
    

My Information

Member Title:
New D.I.C Head
Age:
28 years old
Birthday:
August 30, 1986
Gender:
Location:
Bangaluru
Full Name:
Dheeraj Joshi M
Programming Languages:
Java, C , C#

Contact Information

E-mail:
Click here to e-mail me

Comments

Page 1 of 1
  1. Photo

    dheerajjoshim Icon

    06 Sep 2010 - 21:01
    I am going to become an active poster after couple of weeks here in dream code. Wait and watch :)
  2. Photo

    dheerajjoshim Icon

    09 Jun 2010 - 06:30
    So all byte members are here. How many of them quit bytes and joined here?
  3. Photo

    Frinavale Icon

    09 Jun 2010 - 06:13
    :) :)
Page 1 of 1