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

MOVED:Date and number formats apply in iReport locally, but not when report is run from JasperReports serv


feaganss

Recommended Posts

 Hello,

I'm pretty new to Jasper Reports but am very impressed with it thus far - what a great product!  The problem I'm having is with formatting dates and numbers.  I have patterns specified on the Text Fields in the report, and they apply correctly when I preview the report in iReport.  However, when I upload it to Jasper Reports server and run the report, the number and date formats do not apply.  

For example:  I have a series of date fields that are set with Expression Class "java.lang.string" and the pattern is set to "MMM yyyy".  In iReport preview, the date displays correctly as "Mar 2011".  On the Jasper Reports server, the same field, with no changes, displays as "2011-03-01"  I also have numbers set to use "###0" that show "78" in iReport and "78.00" on JR server, and percentages set to "#,##0 %" that show as "34%" in iReport and "0.78" on JR server.  I've attached "Jasper-correct.jpg" and "Jasper-incorrect.jpg" to illustrate the problem.

Do you have any ideas?  I've spent several hours reading through the Ultimate Guides for iReport and JasperReports, and scanning the forums on JasperForge, but have not found a solution yet.

Thank you very much!

Shawn

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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