当前位置: 首页>>代码示例>>Java>>正文


Java JasperPrintManager类代码示例

本文整理汇总了Java中net.sf.jasperreports.engine.JasperPrintManager的典型用法代码示例。如果您正苦于以下问题:Java JasperPrintManager类的具体用法?Java JasperPrintManager怎么用?Java JasperPrintManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JasperPrintManager类属于net.sf.jasperreports.engine包,在下文中一共展示了JasperPrintManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: imprimirGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
public void imprimirGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs, final String sCab, final boolean bComRef , String rel ) {

		HashMap<String, Object> hParam = new HashMap<String, Object>();
		hParam.put( "COMREF", bComRef ? "S" : "N" );

		FPrinterJob dlGr = null;

	
		dlGr = new FPrinterJob( rel, "Relatório de comississionamento por produção detalhado", sCab, rs, hParam, this );
		

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão de relatório de coletas!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:23,代码来源:FRComisProd.java

示例2: imprimiGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimiGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs, final String sCab ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "VDVENDA" ) );
		hParam.put( "RAZAOEMP", Aplicativo.empresa.toString() );
		hParam.put( "FILTROS", sCab );

		dlGr = new FPrinterJob( rgTipoDeRelatorio.getVlrString(), "Ultimas Vendas por Cliente/Produto", sCab, rs, hParam, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão de relatório de Cliente por Produto!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:24,代码来源:FRVendasCliProd.java

示例3: imprimir

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimir(TYPE_PRINT bVisualizar) {

	FPrinterJob dlGr = null;
	HashMap<String, Object> hParam = new HashMap<String, Object>();

	hParam.put( "CODEMP", Aplicativo.iCodEmp );
	hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "VDVENDA" ) );
	hParam.put( "RAZAOEMP", Aplicativo.empresa.toString() );
	hParam.put( "FILTROS", " " );

	ResultSet rs = queryCheques();
	
	dlGr = new FPrinterJob( "layout/rel/REL_CHEQUES_01.jasper", "Relatório de Cheques ", "filtros", rs, hParam, this );

	if ( bVisualizar==TYPE_PRINT.VIEW ) {
		dlGr.setVisible( true );
	}
	else {
		try {
			JasperPrintManager.printReport( dlGr.getRelatorio(), true );
		} catch ( Exception err ) {
			Funcoes.mensagemErro( this, "Erro na impressão do relatório!" + err.getMessage(), true, con, err );
		}
	}
}
 
开发者ID:cams7,项目名称:erp,代码行数:26,代码来源:FConsultaCheque.java

示例4: imprimirGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
public void imprimirGrafico( TYPE_PRINT bVisualizar, ResultSet rs, String sCab ) {

		HashMap hParam = new HashMap();

		FPrinterJob dlGr = null;

		dlGr = new FPrinterJob( "layout/rel/REL_OC_PEND_ENT.jasper", "Relação de Previsão de entregas", sCab, rs, hParam, this );

		if ( bVisualizar==TYPE_PRINT.VIEW )
			dlGr.setVisible( true );
		else
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão de relatório de previsões de entrega!" + err.getMessage(), true, this.con, err );
			}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:18,代码来源:FROCEntregaPrevista.java

示例5: imprimeGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimeGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs ) {

		String classBol = "";
		if ( txtClassModBol.getVlrString().indexOf( '/', 0 ) == -1 ) {
			classBol = "layout/bol/" + txtClassModBol.getVlrString();
		}
		else {
			classBol = txtClassModBol.getVlrString();
		}

		FPrinterJob dlGr = new FPrinterJob( classBol, "Boleto", null, rs, getParametros(), owner );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro ao tentar imprimir boleto!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:24,代码来源:DLImpBoletoRec.java

示例6: imprimiGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimiGrafico( final ResultSet rs, final TYPE_PRINT bVisualizar, final String sCab ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "CPCOMPRA" ) );
		hParam.put( "RAZAOEMP", Aplicativo.empresa.toString() );
		hParam.put( "FILTROS", sCab );

		dlGr = new FPrinterJob( "relatorios/FRInadimplentes.jasper", "Relatório de Inadimplentes", sCab, rs, hParam, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão de relatório de Inadimplentes!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:24,代码来源:FRInadimplentes.java

示例7: imprimiGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimiGrafico( final ResultSet rs, final TYPE_PRINT bVisualizar, final String sCab ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();
		BigDecimal bAnt = buscaSaldoAnt();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "FNCONTA" ) );
		hParam.put( "RAZAOEMP", Aplicativo.empresa.toString() );
		hParam.put( "FILTROS", sCab );
		hParam.put( "SALDO_ANT", bAnt );

		dlGr = new FPrinterJob( "layout/rel/REL_EXTRATO_PREV.jasper", "Extrato com previsionamento", sCab, rs, hParam, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão de Extratos de contas!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:26,代码来源:FRExtratoPrevisto.java

示例8: imprimir

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimir( TYPE_PRINT bVisualizar ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "RHVAGA" ) );

		dlGr = new FPrinterJob( "relatorios/grhVagas.jasper", "Lista de Vagas", "", this, hParam, con, null, false );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception e ) {
				e.printStackTrace();
				Funcoes.mensagemErro( this, "Erro na geração do relátorio!" + e.getMessage(), true, con, e );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:23,代码来源:FVaga.java

示例9: imprimir

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimir( TYPE_PRINT bVisualizar ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "RHFUNCAO" ) );

		dlGr = new FPrinterJob( "relatorios/grhFuncao.jasper", "Lista de Funções", "", this, hParam, con, null, false );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception e ) {
				e.printStackTrace();
				Funcoes.mensagemErro( this, "Erro na geração do relátorio!" + e.getMessage(), true, con, e );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:23,代码来源:FFuncao.java

示例10: imprimiGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimiGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs, final String sCab ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "VDCLIENTE" ) );
		hParam.put( "RAZAOEMP", Aplicativo.empresa.toString() );
		hParam.put( "FILTROS", sCab );

		dlGr = new FPrinterJob( "layout/rel/REL_CLI_SEM_VD_01.jasper", "Relatório de clientes sem movimento", sCab, rs, hParam, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão do relatório!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:24,代码来源:FRClientesSemVendas.java

示例11: imprimiGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimiGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs, final String sCab ) {

		FPrinterJob dlGr = null;
		HashMap<String, Object> hParam = new HashMap<String, Object>();

		hParam.put( "CODEMP", Aplicativo.iCodEmp );
		hParam.put( "CODFILIAL", ListaCampos.getMasterFilial( "VDVENDA" ) );
		hParam.put( "RAZAOEMP", Aplicativo.empresa.toString() );
		hParam.put( "FILTROS", sCab );

		dlGr = new FPrinterJob( "layout/rel/REL_ICMS_01.jasper", "Relatório de ICMS por NCM", sCab, rs, hParam, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão do relatório!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:24,代码来源:FRIcmsNcm.java

示例12: imprimeGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
private void imprimeGrafico( final ResultSet rs, final TYPE_PRINT bVisualizar, final String sTipo ) {

		HashMap<String, Object> hParam = new HashMap<String, Object>();
		hParam.put( "CODEMP", Aplicativo.iCodEmp );

		FPrinterJob dlGr = null;
		
		if("S".equals( sTipo)){
			dlGr = new FPrinterJob( "relatorios/FRTrans.jasper", "Transportadoras", null, rs, hParam, this );
		}else{
			dlGr = new FPrinterJob( "relatorios/FRTransDetalhado.jasper", "Transportadoras", null, rs, hParam, this );
		}

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão do relatório de Transportadoras!\n" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:24,代码来源:FTransp.java

示例13: imprimirGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
public void imprimirGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs, boolean isrota) {

		FPrinterJob dlGr = null;
		
		if(isrota) {
			dlGr = new FPrinterJob( "relatorios/Setor_rota.jasper", "Relatorio de rota", null, rs, null, this );
		}
		else {
			dlGr = new FPrinterJob( "relatorios/Setor.jasper", "Relatorio por Setor", null, rs, null, this );
		}

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {
				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				Funcoes.mensagemErro( this, "Erro na impressão do relatorio por Setor!" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:23,代码来源:FSetor.java

示例14: imprimirGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
public void imprimirGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs ) {

		FPrinterJob dlGr = new FPrinterJob( "relatorios/TipoRestr.jasper", "Tipo de restrição ", null, rs, null, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {

				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				err.printStackTrace();
				Funcoes.mensagemErro( this, "Erro ao montar relatorio!\n" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:18,代码来源:FTipoRestr.java

示例15: imprimirGrafico

import net.sf.jasperreports.engine.JasperPrintManager; //导入依赖的package包/类
public void imprimirGrafico( final TYPE_PRINT bVisualizar, final ResultSet rs ) {

		FPrinterJob dlGr = new FPrinterJob( "relatorios/ClasCli.jasper", "Classificação Cliente", null, rs, null, this );

		if ( bVisualizar==TYPE_PRINT.VIEW ) {
			dlGr.setVisible( true );
		}
		else {
			try {

				JasperPrintManager.printReport( dlGr.getRelatorio(), true );
			} catch ( Exception err ) {
				err.printStackTrace();
				Funcoes.mensagemErro( this, "Erro ao montar relatorio!\n" + err.getMessage(), true, con, err );
			}
		}
	}
 
开发者ID:cams7,项目名称:erp,代码行数:18,代码来源:FClasCli.java


注:本文中的net.sf.jasperreports.engine.JasperPrintManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。