Seguinte tenho um relatório configurado o tamanho de papel no jasper, o problema é que quando vou mandar imprimir sem visualizar ele perde os padrões de papel que está no relatório e pega os padrões da impressora, o certo era imprimir em 21,590cm de largura por 15,028cm de altura.
Alguém tem alguma dica, meio urgente.
O código está abaixo
JasperPrint jPrint = JasperFillManager.fillReport("rel/transportesParametro.jasper", paramenters, conn);
PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet();
printServiceAttributeSet.add(new PrinterName(impressora, 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();