DocPrintJob job=null;
PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
PrintService svc = PrintServiceLookup.lookupDefaultPrintService();
PrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet();
PrintService selection = ServiceUI.printDialog( null, 100, 100, services, svc, null, attrs);
job = selection.createPrintJob();
DocFlavor flavor =DocFlavor.BYTE_ARRAY.AUTOSENSE;
SimpleDoc doc = new SimpleDoc(data.getBytes(), flavor, null); //doc1
catch(Exception e5)
System.out.println("thr? is error in url");

actually i m on applet i have string in hand to print ,actually when i use this code to print on generic printer ,it is fine but when i try to do same with laser printer (ML-1610 samsung ),a temporary document is created for print in spooler ,and then my printer gets some indication,then roller moves for a while
then printer show that document is printed but no printouts are there
can u plz help me out .