Resetar Impressora Epson

1 resposta
P

Seguinte, estou imprimindo um relatório usando uma lx-300 da epson, quando mando imprimir usando o código abaixo ela fica como Roman, antes de imprimir ela estava como Draft Condensed, alguém sabe com imprimir o documento em roman e voltar para o draft condensed, nunca mexi com comandos ESC então se puder dar um exemplo em cima do código abaixo será de grande utilidade.

public void imprimirEtiqueta() {
        try {
            Connection con = Conexao.getInstance().getConnection();
            Map parametros = new HashMap();
            parametros.put("REMETENTE", "remetente");
            JasperPrint jPrint = JasperFillManager.fillReport("rel/transportes.jasper", parametros, con);

            PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
            PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet(); 
            printServiceAttributeSet.add(new PrinterName("\\\\SERVIDOR2003\\VENDAS Epson LX-300 SILVANA", null));

            JRPrintServiceExporter exporter = new JRPrintServiceExporter();
            exporter.setParameter(JRExporterParameter.JASPER_PRINT, jPrint);
            exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);
            exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, printServiceAttributeSet);
            exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
            exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);
            exporter.exportReport();
        } catch (JRException e) {
            JOptionPane.showMessageDialog(null, e.getMessage());
        }

1 Resposta

M

Tem o link com um .doc com os comandos da impressora.

http://forum.imasters.uol.com.br/index.php?showtopic=224592

Criado 18 de dezembro de 2008
Ultima resposta 18 de dez. de 2008
Respostas 1
Participantes 2