PrintRequestAttributeSet.add(OrientationRequested.PORTRAIT) PrintRequestAttributeSet.add(new Copies(numeroCopias)) PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet() Servicios = PrintServiceLookup.lookupPrintServices(null, null) luego de instalar la imrpesora vuelvo a buscar PrintService servicios = PrintServiceLookup.lookupPrintServices(null, null) PrinterJob job = PrinterJob.getPrinterJob() ![]() buscamos la impresora seleccionada en las impresoras indicadas To print the invoice i use the following code: This invoice is printed on a dot-matrix printer EPSON LX-300 and it has the custom form paper created and configured in windows. I have an invoice in jasper with a custom paper size of 21 x 19 cm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |