vpatelgwu.edu Posted September 18, 2014 Share Posted September 18, 2014 JRDesignTextField textField = new JRDesignTextField(); textField.setX(xPos); textField.setY(2); textField.setWidth(columnWidth); textField.setHeight(COLUMN_HEIGHT); textField.setHorizontalAlignment(HorizontalAlignEnum.LEFT); textField.setStyle(normalStyle); JRDesignPropertyExpression propertyExpression = new JRDesignPropertyExpression(); JRDesignExpression expr = new JRDesignExpression(); expr.setValueClass(java.lang.String.class); expr.setText(COL_HEADER_EXPR_PREFIX + i); propertyExpression.setName("net.sf.jasperreports.export.xls.column.name"); propertyExpression.setValueExpression(expr); textField.addPropertyExpression(propertyExpression); [/code]I am building Jasper template on fly based on query given.I want to set below property of that Detail Section Testfiled item,"net.sf.jasperreports.export.xls.column.name" = "col1""net.sf.jasperreports.export.csv.column.name"="col1""net.sf.jasperreports.export.csv.repeat.value" = "true" How to do this? OR want ed to find what is happening behind the GUI of Ireport or jaspersoft when right click on filed and select csv metadata ..... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now