Hyperlink in exported pdf report is not working when clicked on it.

  1. I have used browsers IE8, chrome and firefox in Windows 7.
  2. this link is not working for local file path (i.e., "file://xyz/abc/lmn.txt" on network drive and "file://D:/xyz/abc/lmn.txt" on local drive) although working for a web hyperlink (i.e., "http://www.google.com").
  3. Also it is working when clicked from jasper server directly.
  4. i am using hyperlink in the report, the snippet of jrxml is as following:

<textField isStretchWithOverflow="true" hyperlinkType="Reference" hyperlinkTarget="Blank">
                <reportElement x="530" y="0" width="30" height="15" uuid="bd764db1-b4e8-4b14-85dd-b99d0d0e1573">
                    <property name="local_mesure_unitheight" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="local_mesure_unitwidth" value="pixel"/>
                    <property name="local_mesure_unitx" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                    <font fontName="Calibri" size="12"/>
                <hyperlinkReferenceExpression><![CDATA["file://" + $F{LogPath}]]></hyperlinkReferenceExpression>

NOTE: $F{LogPath} is a field having path of a local file with some value like "D:/xyz/abc/lmn.txt"

gkm010's picture
Joined: Apr 30 2014 - 3:38am
Last seen: 7 years 3 months ago

0 Answers:

No answers yet