- I have used browsers IE8, chrome and firefox in Windows 7.
- 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").
- Also it is working when clicked from jasper server directly.
- 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"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="12"/>
</textElement>
<textFieldExpression><![CDATA["log..."]]></textFieldExpression>
<hyperlinkReferenceExpression><![CDATA["file://" + $F{LogPath}]]></hyperlinkReferenceExpression>
</textField>
NOTE: $F{LogPath} is a field having path of a local file with some value like "D:/xyz/abc/lmn.txt"