예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ContactsReport rpt = new ContactsReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        public ShowContactsReport(Form1 form)
        {
            InitializeComponent();
            ths = form;
            string userName = ths.userName.Text.ToLower();

            userID = ths.userID;
            report = new ContactsReport();
            report.SetParameterValue(0, userID);
            crystalReportViewer1.ReportSource = report;
        }