GWT JasperReports Usage

1,486 views
Skip to first unread message

Vishnu

unread,
Sep 20, 2011, 9:38:17 AM9/20/11
to Google Web Toolkit
Hello,



I have GWT portal. Portal has different kinds of data. I want to view
the data in jasperReport and later export to pdf,csv,text
etc..depending on the user option . I dont want to use JasperServer.



I wrote the Jasper code [compile & file Reports] method. and tried
running on GWT Development mode.

I'm getting the following errors on GWT Development mode.

No source code is available for type
net.sf.jasperreports.engine.data.JRBeanArrayDataSource; did you forget
to inherit a required module?



I'm able to compile the code but when I run then only is the problem.



Is it possible to have JasperReport on a GWT ? If yes can you guide me
with an simple examples and also settings/configurations needed.



Thanks!!

Vishnu

Jens

unread,
Sep 20, 2011, 12:00:12 PM9/20/11
to google-we...@googlegroups.com
GWT supports only specific java classes (see http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html) so you can't use Jasper directly in client side code. 

You have to generate the PDF/Excel/etc file on your server (not JasperServer, just your GWT backend server) and tell the browser where to download/open the file once its generated. 

-- J.

Rob

unread,
Sep 20, 2011, 11:58:33 PM9/20/11
to Google Web Toolkit
Hi,

Take a look at this post:

-> http://uptick.com.au/content/working-hsqldb-jasperreports-and-ireport

and this demo:

-> http://gwt-cx.com/serendipity/Serendipity.html

Cheers
Rob

http://code.google.com/p/gwt-cx/

On Sep 21, 2:00 am, Jens <jens.nehlme...@gmail.com> wrote:
> GWT supports only specific java classes (seehttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulati...)
Reply all
Reply to author
Forward
0 new messages