public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { SPLPipeCrystalReport rpt = new SPLPipeCrystalReport(); rpt.Site = this.Site; return(rpt); }
private void SPLPIPEReprot_Load(object sender, EventArgs e) { SPLPipeCrystalReport spr = new SPLPipeCrystalReport(); spr.SetDataSource(GetDs()); crystalReportViewer1.ReportSource = spr; //ParameterFields paramFields = new ParameterFields(); //ParameterField paramField1 = new ParameterField(); //paramField1.ParameterFieldName = "Project"; //DataSet ProjectDS = GetProject(); //for (int i = 0; i < ProjectDS.Tables[0].Rows.Count; i++) //{ // ParameterDiscreteValue discreteVal = new ParameterDiscreteValue(); // discreteVal.Value = ProjectDS.Tables[0].Rows[i][0].ToString(); // paramField1.DefaultValues.Add(discreteVal); //} //paramFields.Add(paramField1); //crystalReportViewer1.ParameterFieldInfo = paramFields; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { SPLPipeCrystalReport rpt = new SPLPipeCrystalReport(); rpt.Site = this.Site; return rpt; }