public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { FixedParameterReport rpt = new FixedParameterReport(); rpt.Site = this.Site; return(rpt); }
private void btnFixedParam_Click(object sender, EventArgs e) { DataSet dsFixedParameterReport = new DataSet(); dsFixedParameterReport = objListing.getFixedParameters(); dsFixedParameterReport.WriteXml("FixedParameter.xml"); FixedParameterReport objReport = new FixedParameterReport(); objReport.SetDataSource(dsFixedParameterReport); ReportViewerForm objReportViewer = new ReportViewerForm(); objReport.SetParameterValue("Estate", myDiv.ListEstates().Rows[0][0].ToString()); objReportViewer.crystalReportViewer1.ReportSource = objReport; objReportViewer.Show(); }