public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            storeItemNoWatermark rpt = new storeItemNoWatermark();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            reports frm = new reports();
            storeItemNoWatermark rpt = new storeItemNoWatermark();

            //MvtRpt rpt2 = new MvtRpt();
            //rpt2.SetDataSource(db.mvtReport(2));
            // Set datasource first

            rpt.SetParameterValue("@store_id", Cmb_stores.SelectedValue);
            //rpt.Refresh();
            frm.crystalReportViewer1.ReportSource = rpt;
            //frm.crystalReportViewer1.RefreshReport();
            frm.ShowDialog();
        }