I agree, we do the same thing. Create the complete PDF file on the server using 
JasperReports and provide a URL for the user to download the PDF.

Etienne



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Albert Smulders
Sent: Friday, October 20, 2006 6:59 AM
To: [email protected]
Subject: Re: RE: [ULC-developer] Transfer serialisabled data using invokeUI

Hmm why don't you simply generate a PDF file server side, and show it on the 
client? I just finished integrating Jasper reports (i.m.h.o. a lot better than 
JFreeReports, at least iReport is a nice mature stable tool :))) in our ULC 
application, I even managed to get PDF reports printed server side without 
Adobe Reader preview using Oracle's orarrp.exe tool... (do a Google search for 
that)...

I think no need to transfer the whole stream from server to client, as the 
Adobe Reader is 1) free, 2) without hassle and 3) better I think than the 
JasperReports preview....

Kind regards,

Alberto A. Smulders
HostDat Lda. - Portugal


-------- Original-Nachricht --------
Datum: Fri, 20 Oct 2006 09:35:55 +0200
Von: Anton Levcik <[EMAIL PROTECTED]>
An: "\'[EMAIL PROTECTED] Com\'" <[EMAIL PROTECTED]>
Betreff: RE: [ULC-developer] Transfer serialisabled data using invokeUI

> Hi Janak,
> 
> Thanks for advice, but when I write custom coder, I have problem how 
> to put, for example JasperPrint object, to the IObjectOutputStream in 
> metode writeObject, or how to get JasperPrint object from 
> IObjectInputStream in metode readObject  custom reader object.
> 
> JasperReports product has utilities JRLoader and JRSaver which work 
> with streams, but those streams are java.io streams.
> ULC is not attached with those streams.
> 
> Thence I tried put JasperPrint object directly to IObjectOutputStream 
> Object through methode writeObject (JasperPrint implements 
> Serialisable) and get it directly from IObjectInputStream object 
> through readObject methode, but in this case, occures error: 
> StackOverflowError.
> I tried it in DevelopmentRunner ULC 6.1.1.
> 
> Source code for custom coder I attached with this mail.
> 
> Thanks fo advice.
> 
> Anton Levcik  CIS Bratislava, Slovakia
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Janak Mulani [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 19, 2006 1:15 PM
> To: Anton Levcik
> Cc: '[EMAIL PROTECTED] Com'
> Subject: RE: [ULC-developer] Transfer serialisabled data using 
> invokeUI
> 
> Hi Anton,
> 
> Yes, this is possible.
> 
> You will have to write a Coder for the class whose instance you want 
> to send to the client as an argument to invokeUI() call.
> 
> Please see sections 3.4.4 and 4.4 of the ULC Extensions Guide.
> 
> Once you have written a Coder you will have to register it with the 
> CoderRegistryProvider on the client and server.
> 
> The CoderRegistryProviders are specified as parameters to the ULC 
> client (Applet param or JNLP param) and ULC server (servlet param).
> 
> For the DevelopmentRunner use setClientRegistryProviderClassName() and
> setServerRegistryProviderClassName() APIs.
> 
> Thanks and regards,
> 
> Janak
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Anton Levcik
> Sent: Wednesday, October 18, 2006 3:41 PM
> To: '[EMAIL PROTECTED] Com'
> Subject: [ULC-developer] Transfer serialisabled data using invokeUI
> 
> 
> Hi,
> 
> It is possible write extension so that I may transfer serialisabled 
> data
> >from server to client side
> using invokeUI methode?
> 
> I like to integrate Jasper Reports to ULC client and I know it using 
> transfer files between server and client. But it would be better use 
> output stream on the server side and transfer design or report to the 
> viewer using input stream to the client side.
> I see possible solution to write custom coder for Serialisable type. 
> It si possible?
> 
> Thanks for advice
> 
>             Levcik Anton  CIS Bratislava  Slovakia
> 
> 

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to