Re: t5: printing?
it is also possible to print PDFs non-interactive via adobe reader. with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/5/21 Ulrich Stärk > You could also have the server running the webapp print to a networked > printer using some LPR implementation and a print format your printer > understands (like PostScript, PCL or PDF (newer printers understand PDF > directly)). > > Uli > > Angelo Chen schrieb: > >> Hi Thiago, >> >> You are right about this printing option in a web app. printing is often >> needed in an ERP like app, say, we might make an POS using tapestry5, it >> looks very possible except the printing of invoices, maybe if we can force >> the user to use IE then an activeX loaded in IE might solve this problem. >> >> Angelo >> >> >> Thiago H. de Paula Figueiredo wrote: >> >>> On Thu, May 21, 2009 at 4:51 AM, Angelo Chen >> > >>> wrote: >>> >>> hi, >>> Hi! >>> >>> Thanks for all the replies. the need is really simple, just like an invoicing program, when the transaction is done, prints a receipt without user clicking anything, desktop app does this easily, not so sure about browser based app. will give all those a try, thanks. >>> You don't have access to the printer from a web app, period. The >>> closer you can get is to call window.print() through Javascript. It >>> will show the browser print dialog. >>> >>> -- >>> Thiago >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: t5: printing?
You could also have the server running the webapp print to a networked printer using some LPR implementation and a print format your printer understands (like PostScript, PCL or PDF (newer printers understand PDF directly)). Uli Angelo Chen schrieb: Hi Thiago, You are right about this printing option in a web app. printing is often needed in an ERP like app, say, we might make an POS using tapestry5, it looks very possible except the printing of invoices, maybe if we can force the user to use IE then an activeX loaded in IE might solve this problem. Angelo Thiago H. de Paula Figueiredo wrote: On Thu, May 21, 2009 at 4:51 AM, Angelo Chen wrote: hi, Hi! Thanks for all the replies. the need is really simple, just like an invoicing program, when the transaction is done, prints a receipt without user clicking anything, desktop app does this easily, not so sure about browser based app. will give all those a try, thanks. You don't have access to the printer from a web app, period. The closer you can get is to call window.print() through Javascript. It will show the browser print dialog. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
I also like Dynamic Jasper, mostly because I find procedurally generated reports less fragile than using templates. It does a decent job and gets the info into the user's hands, and is easier than straight Jasper Reports. Also I use the same algorithm to generate PDF and XLS reports (Dynamic Jasper uses JR underneath). Most of the solutions I looked into used iText directly or indirectly. > > If your layout demands are very simple DynamicJasper might also be worth a > look. You don't need xml templates for that but can generate a simple report > from pure Java. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
Why not generating a PDF using something like iText ? In this way there would be no platform dependence ? Angelo Chen ha scritto: > Hi Thiago, > > You are right about this printing option in a web app. printing is often > needed in an ERP like app, say, we might make an POS using tapestry5, it > looks very possible except the printing of invoices, maybe if we can force > the user to use IE then an activeX loaded in IE might solve this problem. > > Angelo > > > Thiago H. de Paula Figueiredo wrote: > >> On Thu, May 21, 2009 at 4:51 AM, Angelo Chen >> wrote: >> >> >>> hi, >>> >> Hi! >> >> >>> Thanks for all the replies. the need is really simple, just like an >>> invoicing program, when the transaction is done, prints a receipt without >>> user clicking anything, desktop app does this easily, not so sure about >>> browser based app. will give all those a try, thanks. >>> >> You don't have access to the printer from a web app, period. The >> closer you can get is to call window.print() through Javascript. It >> will show the browser print dialog. >> >> -- >> Thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> >> > > -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
On Thu, May 21, 2009 at 11:42 AM, Angelo Chen wrote: > Hi Thiago, Hi! > maybe if we can force > the user to use IE then an activeX loaded in IE might solve this problem. Please do not do that. ActiveX is a very bad idea, specially about browser security, and forcing your web application users to use one single browser (and the worst one, by far) is a bad choice. Is asking for the user to click the OK button a print dialog too much? By the way, I don't think a web application is the best choice for something that needs direct hardware access. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
Hi Thiago, You are right about this printing option in a web app. printing is often needed in an ERP like app, say, we might make an POS using tapestry5, it looks very possible except the printing of invoices, maybe if we can force the user to use IE then an activeX loaded in IE might solve this problem. Angelo Thiago H. de Paula Figueiredo wrote: > > On Thu, May 21, 2009 at 4:51 AM, Angelo Chen > wrote: > >> hi, > > Hi! > >> Thanks for all the replies. the need is really simple, just like an >> invoicing program, when the transaction is done, prints a receipt without >> user clicking anything, desktop app does this easily, not so sure about >> browser based app. will give all those a try, thanks. > > You don't have access to the printer from a web app, period. The > closer you can get is to call window.print() through Javascript. It > will show the browser print dialog. > > -- > Thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/t5%3A-printing--tp23626244p23654340.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
On Thu, May 21, 2009 at 4:51 AM, Angelo Chen wrote: > hi, Hi! > Thanks for all the replies. the need is really simple, just like an > invoicing program, when the transaction is done, prints a receipt without > user clicking anything, desktop app does this easily, not so sure about > browser based app. will give all those a try, thanks. You don't have access to the printer from a web app, period. The closer you can get is to call window.print() through Javascript. It will show the browser print dialog. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
hi, Thanks for all the replies. the need is really simple, just like an invoicing program, when the transaction is done, prints a receipt without user clicking anything, desktop app does this easily, not so sure about browser based app. will give all those a try, thanks. angelo Otho wrote: > > The flying saucer is quite neat. https://xhtmlrenderer.dev.java.net/ > Under the hood it uses iText, but is a lot easier to setup and use than > itext directly or jasper reports. > > I use a freemarker html template styled with css for the layout and > databinding and xhtmlrenderer does the rest. You can just write the pdf to > disk for later reference or write to a ByteArrayOutputStream for a stream > response. > > If your layout demands are very simple DynamicJasper might also be worth a > look. You don't need xml templates for that but can generate a simple > report > from pure Java. > > 2009/5/20 Borut Bolčina > >> One way of doing it is by generating PDF. See >> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF which >> uses >> iText. >> >> You can use JasperReports. >> >> There is >> http://www.chenillekit.org/chenillekit-reports/howto_reports.htmlbut >> the documentation is non existing. I haven't used it, I just know the >> module is there. >> >> -Borut >> >> 2009/5/20 Angelo Chen >> >> > >> > Hi, >> > >> > This might not be related to tapestry 5, just a quick question: need to >> > provide a way to print a receipt in my t5 app, any idea how to achieve >> > this? >> > thanks. >> > >> > Angelo >> > >> > -- >> > View this message in context: >> > http://www.nabble.com/t5%3A-printing--tp23626244p23626244.html >> > Sent from the Tapestry - User mailing list archive at Nabble.com. >> > >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> > For additional commands, e-mail: users-h...@tapestry.apache.org >> > >> > >> > > -- View this message in context: http://www.nabble.com/t5%3A-printing--tp23626244p23649203.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: printing?
The flying saucer is quite neat. https://xhtmlrenderer.dev.java.net/ Under the hood it uses iText, but is a lot easier to setup and use than itext directly or jasper reports. I use a freemarker html template styled with css for the layout and databinding and xhtmlrenderer does the rest. You can just write the pdf to disk for later reference or write to a ByteArrayOutputStream for a stream response. If your layout demands are very simple DynamicJasper might also be worth a look. You don't need xml templates for that but can generate a simple report from pure Java. 2009/5/20 Borut Bolčina > One way of doing it is by generating PDF. See > http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF which uses > iText. > > You can use JasperReports. > > There is > http://www.chenillekit.org/chenillekit-reports/howto_reports.htmlbut > the documentation is non existing. I haven't used it, I just know the > module is there. > > -Borut > > 2009/5/20 Angelo Chen > > > > > Hi, > > > > This might not be related to tapestry 5, just a quick question: need to > > provide a way to print a receipt in my t5 app, any idea how to achieve > > this? > > thanks. > > > > Angelo > > > > -- > > View this message in context: > > http://www.nabble.com/t5%3A-printing--tp23626244p23626244.html > > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > >
Re: t5: printing?
One way of doing it is by generating PDF. See http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF which uses iText. You can use JasperReports. There is http://www.chenillekit.org/chenillekit-reports/howto_reports.htmlbut the documentation is non existing. I haven't used it, I just know the module is there. -Borut 2009/5/20 Angelo Chen > > Hi, > > This might not be related to tapestry 5, just a quick question: need to > provide a way to print a receipt in my t5 app, any idea how to achieve > this? > thanks. > > Angelo > > -- > View this message in context: > http://www.nabble.com/t5%3A-printing--tp23626244p23626244.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: t5: printing?
Em Tue, 19 May 2009 20:22:56 -0300, Angelo Chen escreveu: Hi, Hi! This might not be related to tapestry 5, just a quick question: need to provide a way to print a receipt in my t5 app, any idea how to achieve this? thanks. What about some Javascript (window.print()) and CSS Print? Some pointers: http://www.alistapart.com/articles/goingtoprint/ http://www.w3.org/TR/css-print/ http://www.alistapart.com/articles/boom -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
t5: printing?
Hi, This might not be related to tapestry 5, just a quick question: need to provide a way to print a receipt in my t5 app, any idea how to achieve this? thanks. Angelo -- View this message in context: http://www.nabble.com/t5%3A-printing--tp23626244p23626244.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org