Hi Dave,

I found what is the problem. Query that JR report run returned no rows, so
it show it like empty. I added connection param to the JR result and now it
works perfectly :-)! If connection is found, dataSource is not used. 

Great job, thanks!

--
Milan


newton.dave wrote:
> 
> --- On Fri, 11/21/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> I managed to call fillReport with open Connection object,
>> but I just get an empty report page?! If I try to pass Connection object
>> as dataSource in JR result, then I get that exception that Connection is 
>> null and I see report contents but with null values ?
> 
> Second comment first: Passing a connection object as the dataSource won't
> work--it's expecting a data source, not a connection.
> 
> Since I don't know what your code is doing with fillReport I have zero
> chance of providing any useful feedback.
> 
> Again: if you're not using the JR result plugin as intended it might make
> more sense to just use JR normally and stream the PDF contents back. If
> you add a connection parameter to the result and are using it correctly in
> a fillReport call then you'd have to look more on the JR side of things.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JasperReports-Plugin-datasource-tp20564743p20623288.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to