Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptCartaPremio rpt = new rptCartaPremio();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 private void FrmReporteCarta_Load(object sender, EventArgs e)
 {
     try
     {
         rptCartaPremio rptObj = new rptCartaPremio();
         rptObj.SetParameterValue("@Anio", _Anio);
         rptObj.SetParameterValue("@FUNCIONARIO_NOME", _Funcionario);
         rptObj.SetParameterValue("@lider_id", _Lider);
         crystalReportViewer1.ReportSource = rptObj;
     }
     catch (Exception x)
     {
         MessageBox.Show("Error" + x.Message);
     }
 }