Example #1
0
        private void btnClausura_Click(object sender, EventArgs e)
        {
            dtf.Visible      = false;
            dtini.Visible    = false;
            lblDesde.Visible = false;
            lblHasta.Visible = false;

            if (con.State == ConnectionState.Closed)
            {
                con.Open();
            }

            SqlDataAdapter data = new SqlDataAdapter("Repo_Clausura", con);

            data.SelectCommand.CommandType = CommandType.StoredProcedure;


            DataTable dClausura = new DataTable();

            data.Fill(dClausura);

            TorneoAnual.CrystalReports.CRClausura CRCla = new CrystalReports.CRClausura();
            CRCla.Database.Tables["Repo_Clausura"].SetDataSource(dClausura);
            cv.ReportSource = null;
            cv.ReportSource = CRCla;
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRClausura rpt = new CRClausura();

            rpt.Site = this.Site;
            return(rpt);
        }