コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRAvailableStocks rpt = new CRAvailableStocks();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void ReportAvailableStocks_Load(object sender, EventArgs e)
        {
            SA47_Team12bDataSet ds = new SA47_Team12bDataSet();

            SA47_Team12bDataSetTableAdapters.BooksTableAdapter booksTableAdapter = new SA47_Team12bDataSetTableAdapters.BooksTableAdapter();
            booksTableAdapter.Fill(ds.Books);

            CRAvailableStocks crAvailableStocks = new CRAvailableStocks();

            crAvailableStocks.SetDataSource(ds);
            crystalReportViewerAS.ReportSource = crAvailableStocks;
        }