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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            cr2 = new CrystalReport2();
            foreach (ParameterDiscreteValue v in cr2.ParameterFields[0].DefaultValues)
            {
                comboBox1.Items.Add(v.Value);
            }

            /* cr8 = new CrystalReport8();
             * foreach (ParameterDiscreteValue v8 in cr8.ParameterFields[0].DefaultValues)
             *   comboBox1.Items.Add(v8.Value);
             *
             * cr6 = new CrystalReport6();
             * foreach (ParameterDiscreteValue v6 in cr6.ParameterFields[0].DefaultValues)
             *   comboBox2.Items.Add(v6.Value);
             */
        }