Zkuste se podivat na interface JRDataSource ktery implementuji nasledujici tridy

JRAbstractBeanDataSource, JRBeanArrayDataSource, JRBeanCollectionDataSource, 
JRCsvDataSource, JREmptyDataSource, JRHibernateAbstractDataSource, 
JRHibernateIterateDataSource, JRHibernateListDataSource, 
JRHibernateScrollDataSource, JRJpaDataSource, JRMapArrayDataSource, 
JRMapCollectionDataSource, JRMondrianDataSource, JRResultSetDataSource, 
JRTableModelDataSource, JRXmlDataSource

myslim ze si vyberete :-)

 JasperReport report = (JasperReport) 
JRLoader.loadObject(app.getRealPath(sReportName));
 JasperPrint jasperPrint = JasperFillManager.fillReport(report, params, 
dataSource);



s pozdravem
Tomas


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Petr Burdik
Sent: Mon 5/7/2007 8:55 AM
To: Java
Subject: jednoduchy example pro jasperreports

Ahojte,
jeste se prodiram dokumentaci. Mam vytvorenou sablonku, mam javabean. Ted
resim jak to propojit. Potrebuji poslat kolekci java beanu do generatoru
sestavy. Nic vic. Ale vsude v examples co mam to resi pres nejaky sql
datasource. Nejak se mi nedari to najit. Mozna spatne googluji. Nenastli
jste prosim nejakou solidni dokumentaci nekde na netu pri svem
experimentovani?

Preji pekny den
Pet

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

==SMS8260 CZ
Tento email prichazi z Internetu - ujistete se, ze je autenticky. Tesco muze 
sledovat adresy a technicke podminky emailove komunikace.

This email is from the Internet - check that it is genuine. Tesco may monitor 
addresses and technical conditions of email communications.


==SMS8260 CZ

 -- Prohlaseni --
Toto je duverny email. Tesco muze sledovat adresy a technicke podminky emailove 
komunikace. Nazory uvedene v tomto emailu odrazeji zamer odesilatele, nemusi 
vsak odrazet nazory spolecnosti Tesco Stores CR a.s., se sidlem Vrsovicka 
1527/68b, 100 00 Praha 10, IC: 45308314.

 -- Disclaimer --
This is a confidential email. Tesco may monitor addresses and technical 
conditions of email communications. The views expressed in this email are those 
of the sender and not necessarily those of Tesco Stores CR a.s., located at 
Vrsovicka 1527/68b, 100 00 Praha 10, IC: 45308314.

<<winmail.dat>>

Odpovedet emailem