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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            CRY1 Reporte = new CRY1();
            ds1  ds      = new ds1();
            ListadoComprasTableAdapter adaptador = new ListadoComprasTableAdapter();

            adaptador.Fill(ds.ListadoCompras, Convert.ToInt32(this.comboBox1.SelectedValue));
            Reporte.SetDataSource(ds);
            this.crystalReportViewer1.ReportSource = Reporte;
        }