Print a PDF directly from Servoy to a printer

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Print a PDF directly from Servoy to a printer

Postby martinh » Wed Jan 11, 2012 10:54 am

When I want to print a pdf directly to a printer, then I've found 2 possibilities:

* Call Jasper Report plugin and let Jasper directly print to a printer
* Call Jasper Report plugin. Store the result on the server and later print the PDF using some OS depending executable program (but that is not the way I prefer), like this:

Code: Select all
//send the PDF to the printer
application.executeProgram( '/usr/bin/lpr', "-T", jobName, "-P", printerName, "-#" , printQuantity, "-o", "media=" + printerTray, jobName );



As far as I understood, the PDF-Output plugin is not any use here, even when it uses terms like "PrintJob" (which is a wrong term here I think, because this is not a real print job)

I would like to know if there will we soon a plugin which you can call with a filename and a printer and that this plugin prints the file.
This plugin should also be able to show a print dialog (so that you can for example change the print orientation), but this should also be scriptable without dialog.

Is such a plugin available (external plugin) or will such a plugin be available soon in a next version of Servoy (for ex. 6.1)
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Return to Discuss Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests