ldangelo Posted November 17, 2009 Share Posted November 17, 2009 Hi all,I'm wondering if someone can help me out... I'm using the API's to generate jrxml. I'm looking for an example of how you turn a text field into a hyperlink? I've done the following: JRDesignExpression hlpe = new JRDesignExpression(); hlpe.setValueClassName("java.lang.String"); hlpe.setText("http://localhost;8080/orangeleap/"); textField.setHyperlinkReferenceExpression(hlpe); textField.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_REFERENCE); //FIXME Should this be a parameter in the future? But when I generate the report I get an error that says: Class not set for hyperlink reference expression.Can anyone help me out?Thanks in advance,-LeoD Link to comment Share on other sites More sharing options...
ldangelo Posted November 17, 2009 Author Share Posted November 17, 2009 Never mind... This was operator error (I was compiling against the wrong jar DOH)... The code as outlined above works fine. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now