Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crGenerateStationeryRetrieval rpt = new crGenerateStationeryRetrieval();

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

            dsGenerateStationeryRetrievalTableAdapters.v_GenerateStationeryRetrievalTableAdapter ta = new dsGenerateStationeryRetrievalTableAdapters.v_GenerateStationeryRetrievalTableAdapter();
            crGenerateStationeryRetrieval rp = new crGenerateStationeryRetrieval();

            ta.Fill(ds.v_GenerateStationeryRetrieval);
            rp.SetDataSource(ds);
            crvGenerateStationeryRetrieval.ReportSource = rp;
        }