Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptRoti rpt = new rptRoti();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            AppController    m_AppContoller = new AppController();
            RotiToChooseList m_ItemList;

            CommandGetRoti getRotis = new CommandGetRoti();

            m_ItemList = (RotiToChooseList)m_AppContoller.ExecuteCommand(getRotis);

            rptRoti crReport = new rptRoti();

            crReport.Database.Tables["Invoice_OTC_Model_RotiToChooseItem"].SetDataSource(m_ItemList);

            crystalReportViewer1.ReportSource = crReport;
        }