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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void btnFieldSettings_Click(object sender, EventArgs e)
        {
            DataSet dsFixedParameterReport = new DataSet();

            dsFixedParameterReport = objListing.getFieldSettings();
            dsFixedParameterReport.WriteXml("FieldSettingsListing.xml");

            FieldSettingsListingRPT objReport = new FieldSettingsListingRPT();

            objReport.SetDataSource(dsFixedParameterReport);
            ReportViewerForm objReportViewer = new ReportViewerForm();

            objReport.SetParameterValue("Estate", myDiv.ListEstates().Rows[0][0].ToString());
            objReportViewer.crystalReportViewer1.ReportSource = objReport;
            objReportViewer.Show();
        }