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

            rpt.Site = this.Site;
            return(rpt);
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            InventarioBodega inventario = new InventarioBodega();

            inventario.SetParameterValue("@idBodega", int.Parse(TextBox1.Text));
            inventario.SetParameterValue("@idUsuario", int.Parse(Session["usuario"].ToString()));

            CrystalReportViewer1.ReportSource = inventario;
            CrystalReportViewer1.RefreshReport();
        }