Jump to content
We've recently updated our Privacy Statement, available here ×

Print or Preview in ireport 5.6.0


Jblanco.crccoding

Recommended Posts

Hello I'm new to the community, I have a question, I'm using ireport 5.6 and I'm trying to print a clob-type document but within the parameters there are approximately 32000 characters and it gives me an error when printing,

try using this: $F{ yourFieldName}.getSubString( 1l, ( new Long( $F{yourFieldName}.length() ) ).intValue() )

but I haven't been able to print it either, not like this -> new BufferedReader(new InputStreamReader($F{FIELD_NAME} )).readLine()

and neither is this one, which is the first one I've used: $F{FIELD}.getSubString( (long)1, (int)$F{FIELD}.length() ) 

none worked for me, any suggestions?

p.d:I'm looking to print something very long inside ireport, I've done it before but not like this

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Are you new in using Jaspersoft community as well? I'm asking as I wonder why you use such an old version. The latest version of iReports is called Jaspersoft Studio version 6.20 and can be downloaded from https://community.jaspersoft.com/community-download.
To help with your question I would need the stack trace. Also could you switch to Java as the expression language for the report? Java errors are generally more detailed and I believe iReports had Groovy as the default language.

Link to comment
Share on other sites

I know, but I can't update either the language or the ireport, this is because the company where I work doesn't plan to do it, which seems somewhat ambiguous to me

However, I was investigating how to do what I asked for, but I concluded that it is impossible after doing so much research, unless they decide to update the software

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...