public class JasperUtil extends Object
| Constructor and Description |
|---|
JasperUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
geraBytesRelatorio(net.sf.jasperreports.engine.JasperPrint jasperPrint) |
static byte[] |
geraRelatorio(List<?> dados,
HashMap<String,Object> parametros,
String arquivoJasper,
Class<?> classe,
HashMap<String,String> arquivoJasperSub) |
static void |
geraRelatorioDescktop(List<?> dados,
HashMap<String,Object> parametros,
String arquivoJasper,
Class<?> classe,
HashMap<String,String> arquivoJasperSub,
boolean diretoImpressora,
PrintService printService) |
static byte[] |
geraRelatorioXml(File fileXml,
HashMap<String,Object> parametros,
String expression,
String arquivoJasper,
Class<?> classe,
HashMap<String,String> arquivoJasperSub) |
static PrintService |
getImpressora(String impressora) |
static List<String> |
getImpressorasDisponiveis() |
public static byte[] geraRelatorio(List<?> dados, HashMap<String,Object> parametros, String arquivoJasper, Class<?> classe, HashMap<String,String> arquivoJasperSub) throws Exception
Exceptionpublic static byte[] geraRelatorioXml(File fileXml, HashMap<String,Object> parametros, String expression, String arquivoJasper, Class<?> classe, HashMap<String,String> arquivoJasperSub) throws Exception
Exceptionpublic static byte[] geraBytesRelatorio(net.sf.jasperreports.engine.JasperPrint jasperPrint)
throws Exception
Exceptionpublic static void geraRelatorioDescktop(List<?> dados, HashMap<String,Object> parametros, String arquivoJasper, Class<?> classe, HashMap<String,String> arquivoJasperSub, boolean diretoImpressora, PrintService printService) throws Exception
Exceptionpublic static PrintService getImpressora(String impressora) throws Exception
ExceptionCopyright © 2022. All rights reserved.