2001 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: dxg - good4good send file to certain printer 2002-08-30 01:13I wonder when Jasper will support autoly print file to certain printer but not system default printer? Our server connects several printers.It is very unconviniet to set default printer to this or that manually from time to time. By: dxg - good4good RE: send file to certain printer 2002-08-30 01:16I mean whether there is any way I can print on certain printer by calling jasper API with printer name as its parameter? By: Bernd Proissl - berndproissl RE: send file to certain printer 2002-08-30 01:18Hi, AFAIR this can not be done with Java before 1.4. I posted a JRPrinterAWT in the patches section for JDK 1.4 which allows this, it may give you a starting point It picks up the printer name from system property "dori.jasper.print.printService". Bernd By: dxg - good4good RE: RE:send file to certain printer 2002-09-08 23:03isn't it possible to use java.awt.JobAttributes.setPrinter(printerName) to solve such a problem? I use SilverStream server which only support jdk 1.3, and we are using the above method to choose printer. By: dxg - good4good RE: send file to certain printer 2002-09-29 20:15Sorry to ask again since it is urgent for me. why dont use java.awt.JobAttributes.setPrinter(printerName) to select printer in Jasperreport (I have to use JDK 1.3)? By: Teodor Danciu - teodord RE: send file to certain printer 2002-10-02 03:42 Hi, This is on my TO DO list now. However, those feature are part of JDK1.3 and JasperReports still supports JDK1.2.2. Either we should not support 1.2.2 anymore, or provide new printer classes as an optional package. Thank you, Teodor By: Nathan W. Phelps - nphelps RE: send file to certain printer 2002-10-02 05:37My preference would be dropping support for JDK 1.2.2 and supporting JDK 1.3 and up. When JDK 1.5 is shipped, drop JDK 1.3 from the bottom, etc. By: Teodor Danciu - teodord RE: send file to certain printer 2002-10-30 14:26 Hi, In the new 0.4.3 version, there is an exporter called JRPrintServiceExporter, which makes use of the Java Print Service API that comes with JDK 1.4. You check the "printservice" sample to see how you could use it to send output to a certain printer (even specified by its name). Thank you, Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now