Jump to content
JasperReports Library 7.0 is now available ×

... System.out


2004 IR Help

Recommended Posts

By: andreas zeiner - andreaszeiner

... System.out

2004-03-23 01:52

hello

 

maybe a stupid question but how can i see the System.out.println("output") in iReport made by a scriptlet?

 

is there a way to display the output on the console of iReport?

 

greetinx

 

andy

 

 

 

 

By: Alex Kotchnev - polrtex

RE: ... System.out

2004-03-23 11:37

Andy,

 

you could create a varialbe of type java.io.PrintWriter to hold a reference to java.lang.System.out ( e.g. variable name "console"). Then, you can send output to it by putting a text field on your report , that has a content of $V{console}.println("Your log message"). You don't even have to create the variable, since in the content of the text field, you can easily use a regular java statement such as java.lang.System.out.println("Your log message"). Don't forget that this is all java, so anything you can do in java, you can do here..

 

I hope this helps.

 

Alex K

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...