dtrobert Posted October 30, 2009 Share Posted October 30, 2009 Hi, A while back we encountered problems with XLS output where long numbers (phone numbers) would be converted into sci-fi notation so we disabled the auto-formatting of all reports. However, now we see that it has a negative impact when it comes to say timestamps because, when sorting in Excel, it just performs a basic alphanumerical sort instead of intelligently knowing these are timestamps (10:01 sorts because 9:54 because 1 < 9 ). Does anyone know of a way to enable/disable this behavior per textfield? Thanks! Link to comment Share on other sites More sharing options...
lucianc Posted December 2, 2009 Share Posted December 2, 2009 Setting the IS_DETECT_CELL_TYPE export parameter to true should take care of this.Regards,Lucian Link to comment Share on other sites More sharing options...
dtrobert Posted December 2, 2009 Author Share Posted December 2, 2009 Lucian, I'm not familiar with export parameters. Can you please give me a simple example? Link to comment Share on other sites More sharing options...
lucianc Posted December 11, 2009 Share Posted December 11, 2009 See below. And also check the samples shipped with the JR distribution.HTH,LucianCode:JExcelApiExporter xlsExporter = new JExcelApiExporter();xlsExporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); 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