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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Reportesf      f  = new Reportesf();
            CrystalReport2 cr = new CrystalReport2();

            if (rbefec.Checked == true)
            {
                string enc;
                enc = "Reporte de entradas en efectivo hasta la Fecha";
                TextObject text1 = (TextObject)cr.ReportDefinition.Sections["Section4"].ReportObjects["Text9"];
                text1.Text = enc;
                TextObject text = (TextObject)cr.ReportDefinition.Sections["Section4"].ReportObjects["Text8"];
                text.Text = lbto.Text;

                f.crystalReportViewer1.ReportSource = cr;
                f.Show();
            }
            else if (rbcred.Checked)
            {
                string enc;
                enc = "Reporte de entradas a Credito hasta la Fecha";
                TextObject text1 = (TextObject)cr.ReportDefinition.Sections["Section4"].ReportObjects["Text9"];
                text1.Text = enc;
                TextObject text = (TextObject)cr.ReportDefinition.Sections["Section4"].ReportObjects["Text8"];
                text.Text = lbto.Text;

                f.crystalReportViewer1.ReportSource = cr;
                f.Show();
            }



            else if (rbfact.Checked == true)
            {
            }
        }