yanyan Posted September 10, 2007 Share Posted September 10, 2007 Is there any way to add free text field on the pdf report by using Jasper Report? In another word, user who receives/reviews the pdf report may add sone comments by themselves. Thanks a lot. Link to comment Share on other sites More sharing options...
yurish Posted September 11, 2007 Share Posted September 11, 2007 Well, you can just add a clear field, like $F{COMMENTS} and send data via your Java app to that field. Something like this one: Code:public Object getFieldValue(JRField field) throws JRException {Object value = null;String fieldName = field.getName();if ("COMMENTS".equals(fieldName)) {value = "usertyped text"; } Something like this. I'm new to JR, so don't know if it's correct. But idea is like i mentioned. 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