Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to Disable Hyperlinks in Excel Export


    asimkin
    • Features: Exporters, JasperReports Server, Reports Product: JasperReports® Server

    Request Description

    Customer created a report with hyperlinks and need to disable them in export to MS Excel


    Solution

    JasperReports library has a few properties to ignore hyperlinks for most popular export format:

    net.sf.jasperreports.export.{format}.ignore.hyperlink[/code]

    For Excel export you should use

    net.sf.jasperreports.export.xls.ignore.hyperlink[/code]

    http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.xls.ignore.hyperlink

    The property should be specified as hyperlink parameter with True boolean value:

    <hyperlinkParameter name="net.sf.jasperreports.export.xls.ignore.hyperlink">        <hyperlinkParameterExpression>Boolean.TRUE</hyperlinkParameterExpression></hyperlinkParameter>[/code]

    AS-20200922, case 01889949


    User Feedback

    Recommended Comments

    There are no comments to display.



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