gahbiche Posted May 20, 2010 Share Posted May 20, 2010 Can someone tell me how to use the java.lang.Object class for textfield element?.Actually I have a field ATT_FILE which is a java.io.File that contains a file dynamically created from a byte[] containg its data and a String containing its name. I want to put the expression $F{ATT_FILE} in the text field element.In other world having something like that <textFieldExpression class="java.lang.Object"><![CDATA[$F{ATT_FILE}]]> </textFieldExpression>My problem is that I'm working with iReport 2.0.5 version and in the text field expression list, I don't have the java.lang.Object and when I write it directly in the jrxml file, I get a compling cast exception as the ireport retransfom it to java.land.String as the java.lang.Object is not reconized as a valid attribute for textFieldExpressionFollowing the defenitive guide to Ireport (2007), it is possible to choose the java.lang.Object from the listif it is not possible, how can I add a File into my report?? I'm trying to make a report that summarise all the attached documents to a given project and displays in a single file all these attached documentsMany thanks in advance Link to comment Share on other sites More sharing options...
tmatyashovsky Posted May 20, 2010 Share Posted May 20, 2010 Have you tried to use Image component? It is more suitable for files and supports java.io.File. Best,Taras Matyashovsky 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