private void active_inventariadofisico()
        {
            try
            {
                var path = string.Empty;
                var directorios = Application.StartupPath.Split('\\');
                if (directorios.Length > 0)
                {
                    path = directorios[0] + "\\" + directorios[1];
                }

                var reporteRollokardex = new CR_inventariado();
                reporteRollokardex.DataDefinition.FormulaFields["empresaname"].Text = "'EMPRESA: " + VariablesPublicas.EmpresaName.Trim() + "'";
                reporteRollokardex.DataDefinition.FormulaFields["empresaruc"].Text = "'RUC: " + VariablesPublicas.EmpresaRuc.Trim() + "'";
                reporteRollokardex.DataDefinition.FormulaFields["usuario"].Text = "'" + VariablesPublicas.Nombr.Trim() + "'";
                reporteRollokardex.DataDefinition.FormulaFields["almacen"].Text = "'" + moduloname + "'";
                reporteRollokardex.SetDataSource(Lista_inventariofisico());
                crystalReportViewer1.ReportSource = reporteRollokardex;
                crystalReportViewer1.Show();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     CR_inventariado rpt = new CR_inventariado();
     rpt.Site = this.Site;
     return rpt;
 }