Jump to content

Autoresizing problem in excel format


balak

Recommended Posts

Hi  all,

I am facing this problem :

when i export my report in excel format, If the data for textfield is long like for eg:

data of 4 lines.I am able to see only some lines out of 4.All the 4 lines not shown.To see all the lines i need to double click on the cell.I think the textfiled doesn not get expanded enough to occupy the data.

I have set following  properties to textfiled:

isStretchWithOverflow =true.

stretchType=relattiveToTallestObject.

I have also checked with the property print.keep.full.text=true.

but still i am facing the same problem.

I am using the font as : Arial  and font size=10.

 

Please help to solve this issue.

 

Thanks in advance.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic


hi try with this istruction:

JRExporter exporter = new JRXlsExporter();
    //  exporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, new Boolean(true));
    // exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, new Boolean(true));
      exporter.setParameter(JRXlsExporterParameter.IS_FONT_SIZE_FIX_ENABLED, new Boolean(true));
 

I hope this help you

Giovanni

...La puissance est rien sans controle...

 

Link to comment
Share on other sites

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...