I want to add hyperlinks to my report. The hyperlink set in one report should take me to another subreport. Could you please tell me if this is feasible. If it is could you please provide step by step approach to achieve this?
相关问题
- React Native Inline style for multiple Text in sin
- Set BaseUrl of an existing Pdf Document
- Jasper: error opening input stream from url
- Using relative links in Blogger
- Unknown space between links
相关文章
- How to get rid of border around and image used as
- Removing the href attribute
- How to create a hyperlink to a different Excel she
- HTML & CSS - put <link> tag outside of the &
- Is there a syntax for links with no text in Markdo
- How to set up jasper reports in spring with subrep
- Modularization of Jasper reports: Pass data source
- How to use jasperreports subreports with grails ja
First, yes, it is feasible.
Second, here are your step-by-step instructions:
Note that there are other ways to do this, and your method may vary if you aren't using java and servlets to generate your reports. I would recommend looking at the ireport documentation for further instructions.
I got the solution to my problem. I had no requirement where I had to to pass any value from one subreport to another. So I simply right clicked on the textfield that I wanted the link on. I set the Hyperlink target as "Self" and Hyperlink type as "LocalPage" and in Hyperlink Page expression I set the following expression : Integer.valueOf(i) ,where i is page number(in my case it was sheet number) where I want the hyperlink to take me. If you want you can also use the following property : Integer.valueOf($V{REPORT_COUNT}).
Thanks everyone for the response.
For navigation within reports I have implemented using Hyperlinks and Anchors
Below is the text field with hyperlinkAnchorExpression, this will be the link. Note the hyperlinkType="LocalAnchor"
Below is the anchornameexpression, this will be called when a hyperlink is clicked and values is matched with the hyperlinkAnchorExpression value anywhere in the report.
I have implemented this to navigate across reports and subreports. Hope this will be helpful.