コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            zmryyetj rpt = new zmryyetj();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
ファイル: Form5.cs プロジェクト: tatamizzz/qiuchang
        private void button1_Click(object sender, EventArgs e)
        {
            zmryyetj mryyetj1 = new zmryyetj();

            ParameterFields paramFields = new ParameterFields();
            ParameterField  paramField  = new ParameterField();

            paramField.Name = "@starttime";
            ParameterDiscreteValue rangeval = new ParameterDiscreteValue();

            rangeval.Value = "2008-07-25";//dateTimePicker2.Value.ToString("yyyy-mm-dd");
            paramField.CurrentValues.Add(rangeval);
            paramFields.Add(paramField);
            crystalReportViewer1.ParameterFieldInfo = paramFields;
            //mryyetj1.SetParameterValue(0, "2008-07-28 00:00:00");
            //mryyetj1.SetParameterValue("endtime", dateTimePicker2.Value);
            crystalReportViewer1.ReportSource = mryyetj1;
        }