learningjasper Posted August 17, 2010 Share Posted August 17, 2010 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(); Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 19, 2010 Share Posted August 19, 2010 Hi, Please post your questions to the DynamicJasper project forums, if that is what you are actually using.This is not a JasperReports issue. Thank you,Teodor 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