private void ImpresionTomaInv()
        {
            var tablaReport = new DataTable();
            var BL = new tb_60local_stockBL();
            var BE = new tb_60local_stock();

            BE.moduloid = ((D60ALMACEN.MainAlmacen)MdiParent).moduloid;
            BE.local = ((D60ALMACEN.MainAlmacen)MdiParent).local;
            BE.lineaid = lineaid.Text.Trim();
            BE.status = "0";

            tablaReport = BL.GetAll_productostock(VariablesPublicas.EmpresaID.ToString(), BE).Tables[0];
            if (tablaReport.Rows.Count == 0)
            {
                MessageBox.Show("No existe Información Procesada", "Mensaje del Sistema", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                var miForma = new Frm_Reportes();
                var reporteInventario = new REPORTES.CR_tomainventario();
                miForma.Text = "Toma de Inventario : Linea";
                reporteInventario.DataDefinition.FormulaFields["almacen"].Text = "'" + ((D60ALMACEN.MainAlmacen)MdiParent).moduloname + "'";

                miForma.Table = tablaReport;
                miForma.Reporte = reporteInventario;
                miForma.Show();
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     CR_tomainventario rpt = new CR_tomainventario();
     rpt.Site = this.Site;
     return rpt;
 }