Author |
Message |
18/06/2008 08:14:01
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
Hi community,
we are just discussing one hot topic of the last community meeting: output management.
Based on the input of one member we had a bit closer look into JasperReports - and of course this is something which is absolutely useful...! In short words:
(.) with jasper you create reports, in which the layout (.jrxml) is kept aside from the data, so that both together produces a nice looking report.
(.) the report can be output into diverse output formats: including .pdf, .xls, .csv, .xml and: it can be sent to the printer from Java.
So, jasper is a very useful tool for report building and printing.
NOW: what could be done in order to embed jasper? We see the following approaches:
(.) let the server create jasper report and output as PDF ==> display PDF in browser (this is possible right now, use BROWSER component to render .pdf)
(.) let the server create jasper report and output as print-XML ==> display in Enterprise Client using the jasper reports viewer (JRViewer) component. This comes with a quite big jasper foot print (jasper needs to be available in big parts on client side) - but is a 100% reliable mode for rendering reports.
(.) previous issue + directly enable client side printing of jasper reports
...and...
(.) use jasper to directly output grids (FIXGRID) into .pdf/.xls/etc.
Please add other issues + feedback from your side.... Thanks!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
18/06/2008 09:19:25
|
schmuck
Power User
Joined: 08/04/2008 16:27:16
Messages: 83
Offline
|
Hello,
the next thing is, if you have transfered the JasperPrint object to the clinet, you can not only display it with the JRViewer. You are also able to print it on the local installed printers!
I would be very pleased to get such a Jasper implementation.
Maybe you can realise it as something like a plugin. On server side, you can declare in config files, that jasper is deployed via Webstart to the client - or not.
|
|
|
18/06/2008 10:10:13
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
...the integration is quite simple... first screenshot below
Björn
|
Filename |
jrviewer.jpg |
Download
|
Description |
|
Filesize |
70 Kbytes
|
Downloaded: |
517 time(s) |
|
Björn Müller, CaptainCasa GmbH |
|
|
23/06/2008 14:02:13
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
with 20080623 Update JasperReports is nicely (?) integrated... Please check the new section of http://www.CaptainCasa.com
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
23/06/2008 14:48:39
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
Comment on 20080623: the japser-jars are not included in the batch files that are part of the Windows start menu. If you want to use jasper extend your batch files in the following way:
Code:
set TCP=..\resources\webappaddons\eclnt\lib\eclnt.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\swt.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\jasperreports-3.0.0.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\commons-beanutils-1.7.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\commons-collections-2.1.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\commons-digester-1.7.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\commons-javaflow-20060411.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\commons-logging-1.0.2.jar
set TCP=%TCP%;..\resources\webappaddons\eclnt\lib\commons-logging-api-1.0.2.jar
start jre\bin\javaw.exe -cp %TCP% org.eclnt.client.page.PageBrowser <a href="http://localhost:50000" target="_blank" rel="nofollow">http://localhost:50000</a>
/demos/faces/workplace/workplace.jsp headerline=true
|
Björn Müller, CaptainCasa GmbH |
|
|
|