private void XROL_Rpt009_rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { try { XROL_Rpt009_Bus oReporteBus = new XROL_Rpt009_Bus(); List <XROL_Rpt009_Info> oListado = new List <XROL_Rpt009_Info>(); int idEmpresa = Convert.ToInt32(Parameters["p_IdEmpresa"].Value); int idPeriodoFiscal = Convert.ToInt32(Parameters["p_PeriodoFiscal"].Value); int idNominaTipo = Convert.ToInt32(Parameters["p_IdNominaTipo"].Value); oListado = oReporteBus.GetListPorIdPeriodo(idEmpresa, idNominaTipo, idPeriodoFiscal, ref mensaje); this.DataSource = oListado.ToArray(); } catch (Exception ex) { oLog.Log_Error(ex.ToString()); } }
private void XROL_Rpt009_rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { try { XROL_Rpt009_Bus oReporteBus = new XROL_Rpt009_Bus(); List <XROL_Rpt009_Info> oListado = new List <XROL_Rpt009_Info>(); int idEmpresa = Convert.ToInt32(Parameters["p_IdEmpresa"].Value); int idPeriodoFiscal = Convert.ToInt32(Parameters["p_PeriodoFiscal"].Value); int idNominaTipo = Convert.ToInt32(Parameters["p_IdNominaTipo"].Value); oListado = oReporteBus.GetListPorIdPeriodo(idEmpresa, idNominaTipo, idPeriodoFiscal, ref mensaje); xrPictureBox1.Image = param.InfoEmpresa.em_logo_Image; lblEmpresa.Text = param.InfoEmpresa.RazonSocial; lb_nombrecomercial.Text = param.InfoEmpresa.em_nombre; this.DataSource = oListado.ToArray(); } catch (Exception ex) { oLog.Log_Error(ex.ToString()); } }