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

Jasperserver support? freeze column in jasperserver


552186866qq.com

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 1 year later...

you can freeze columns in excel output file by adding next property to your .jrxml:

<property name="net.sf.jasperreports.export.xls.freeze.column" value="A"/>[/code]

the same for row:

<property name="net.sf.jasperreports.export.xls.freeze.row" value="1"/>[/code]

more information here: http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.xls.freeze.column

 

Properties like net.sf.jasperreports.export.xls.freeze.row/column are implemented for Excel export because Excel reads these settings ate export time, and process them internally to freeze rows or columns.

There are no equivalent properties for Java/HTML output format, because Java/HTML viewers don't interpret such values similar to Excel.

Freezing rows in HTML tables involves a lot of css/javascript additional code. See this link for reference: https://stackoverflow.com/questions/8423768/freeze-the-top-row-for-an-html-table-only-fixed-table-header-scrolling

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