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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void frmRptStocks_Load(object sender, EventArgs e)
        {
            rptStocks                 rep = new rptStocks();
            npos_dbDataSet            ds  = new npos_dbDataSet();
            DisplayStocksTableAdapter adp = new DisplayStocksTableAdapter();

            rep.SetDataSource(ds);
            adp.Fill(ds.DisplayStocks);
            crystalReportViewer1.ReportSource = rep;
        }