Results 1 to 4 of 4
- 09-19-2009, 09:15 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 2
- Rep Power
- 0
printer get printed in the server in stead of client
I am using jBoss server .
when we are giving print from the client it does not print in client but its get print in the server.. i don't know how to redirect it...so help me...
this is the piece of code::
PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
printRequestAttributeSet.add(OrientationRequested. PORTRAIT);
printRequestAttributeSet.add(MediaSizeName.ISO_A4) ;
PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet();
printServiceAttributeSet.add(new PrinterName("HP LJ P3005", null));
exporter = new JRPrintServiceExporter();
exporter.setParameter(JRPrintServiceExporterParame ter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);
exporter.setParameter(JRPrintServiceExporterParame ter.PRINT_SERVICE_ATTRIBUTE_SET, printServiceAttributeSet);
exporter.setParameter(JRPrintServiceExporterParame ter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParame ter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);
- 09-19-2009, 08:36 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
We don't know whether you are serving your application using webstart or maybe it's just a web application. Basically if you want that code to do the printing then it has to be running on the computer where you want the printing to happen from.
- 09-22-2009, 01:52 PM #3
Member
- Join Date
- Sep 2009
- Posts
- 2
- Rep Power
- 0
it's just a web application. if we give the print in the client system the printer has to be activated in the client machine, but here it is going to the server and started printing from the server...
weather we can redirect the client to print through the browser...
- 09-22-2009, 02:33 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
Verify if a file as been, for sure, printed
By pjmorce in forum Advanced JavaReplies: 0Last Post: 11-20-2008, 10:45 AM -
Datagram Client and Server, client timer question
By saru88 in forum NetworkingReplies: 1Last Post: 10-05-2008, 03:12 PM -
Identify Client in Socket Client Server Application
By masadjie in forum NetworkingReplies: 1Last Post: 12-20-2007, 09:18 AM -
jsp program for client side printer to print these 2 strings on 3/3
By for453 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 08-07-2007, 04:42 PM -
i want how to make aprint client side printer to print these 2 strings on 3/3 inch pa
By for453 in forum NetworkingReplies: 0Last Post: 08-06-2007, 06:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks