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

            rpt.Site = this.Site;
            return(rpt);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            dsInvStatus ds = new dsInvStatus();

            dsInvStatusTableAdapters.v_InvStatusReportTableAdapter ta = new dsInvStatusTableAdapters.v_InvStatusReportTableAdapter();

            crInvStatusReport rp = new crInvStatusReport();

            ta.Fill(ds.v_InvStatusReport);
            rp.SetDataSource(ds);

            crvInvStatusReport.ReportSource = rp;
        }