Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            DetailedReport rpt = new DetailedReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void Report_Load(object sender, EventArgs e)
        {
            ReportData        r   = new ReportData();
            List <ReportData> lst = new List <ReportData>();
            //lst = r.Data();
            DetailedReport crpt = new DetailedReport();
            int            i    = Details.printId;

            crpt.SetParameterValue("@Id", Details.printId, "ReasonsRPT");
            crpt.SetParameterValue("@Id", Details.printId, "DiseaseNameCategory");
            crpt.SetParameterValue("@Id", Details.printId, "SymptomsRPT");
            crpt.SetParameterValue("@Id", Details.printId, "MedicinesRPT");

            //crpt.SetParameterValue("@Id", 40, "ReasonsRPT");

            //ReasonsReport reasonsCrpt = new ReasonsReport();
            //reasonsCrpt.SetParameterValue("@Id", 40);
            //crpt.SetDataSource(lst);
            crystalReportViewer1.ReportSource = crpt;
        }