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

HorizontalAlign.LEFT not working on IE and Opera!!


learningjasper

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...