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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string fechainicial = txtIdServicio.Text;

            ReporteFactura report = new ReporteFactura();

            report.SetDatabaseLogon("root", "123456", "localhost", "sistemav");

            ParameterValues valor1 = new ParameterValues();



            ParameterDiscreteValue fechai = new ParameterDiscreteValue();


            fechai.Value = fechainicial;


            valor1.Add(fechai);


            report.DataDefinition.ParameterFields["idservicio"].ApplyCurrentValues(valor1);

            this.crystalReportViewer1.ReportSource = report;
        }