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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void PatientPhysicianReportViewer_Load(object sender, EventArgs e)
        {
            //Declare a report object for use at runtime
            PatientPhysicianReport aPatientPhysicianReport;

            //Intantiate the report

            aPatientPhysicianReport = new PatientPhysicianReport();
            try
            {
                //Instantiate the dataset and table adapters
                patientPhysicianDataSet = new dbMvchDataSet();

                bedTblTableAdapter        = new dbMvchDataSetTableAdapters.bedTblTableAdapter();
                admissionsTblTableAdapter = new dbMvchDataSetTableAdapters.admissionTblTableAdapter();
                patientTblTableAdapter    = new dbMvchDataSetTableAdapters.patientTblTableAdapter();
                physicianTblTableAdapter  = new dbMvchDataSetTableAdapters.physicianTblTableAdapter();

                //Fill the dataset using via the two table adapters
                //Fill with customers
                bedTblTableAdapter.Fill(patientPhysicianDataSet.bedTbl);
                admissionsTblTableAdapter.Fill(patientPhysicianDataSet.admissionTbl);
                patientTblTableAdapter.Fill(patientPhysicianDataSet.patientTbl);
                physicianTblTableAdapter.Fill(patientPhysicianDataSet.physicianTbl);

                //Assign the filled dataset as the datasource for the report
                aPatientPhysicianReport.SetDataSource(patientPhysicianDataSet);

                //Set up the report viewer object on the form to
                //show the runtime report object
                PatientPhysicianReportViewer.ReportSource = aPatientPhysicianReport;
            }
            catch (Exception dataException)
            {
                //Catch any exception thrown during data object instantiation
                //or report generation and display based on the dataset
                MessageBox.Show("Data Error Encountered: " + dataException.Message);
            }
        }