public void ReportView()
 {
     try
     {
         var dsDiseño    = new dsWarehouse();
         var pResult     = "";
         var dsEjecucion = objWarehouse.GetWarehouseActive(Session["connectionString"].ToString(), ref pResult);
         if (pResult == "")
         {
             for (var i = 0; i < dsEjecucion.Tables[0].Rows.Count; i++)
             {
                 var row = dsDiseño.SWIFT_WAREHOUSES.NewRow();
                 row[0] = dsEjecucion.Tables[0].Rows[i]["CODE_WAREHOUSE"]; row[1] = dsEjecucion.Tables[0].Rows[i]["DESCRIPTION_WAREHOUSE"];
                 row[2] = dsEjecucion.Tables[0].Rows[i]["WEATHER_WAREHOUSE"];
                 row[4] = dsEjecucion.Tables[0].Rows[i]["NAME_DISTRIBUTION_CENTER"];
                 row[5] = dsEjecucion.Tables[0].Rows[i]["CODE_WAREHOUSE_3PL"];
                 dsDiseño.SWIFT_WAREHOUSES.Rows.Add(row);
             }
             var reporte = new Report.ReportWarehouse {
                 DataSource = dsDiseño
             };
             Session["DSDISEÑO"] = dsDiseño;
             ASPxDocumentViewer1.DataBind();
             ASPxDocumentViewer1.Report = reporte;
         }
         else
         {
             ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true);
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!ValidarConexionYUsuarioLogueado(sender))
     {
         return;
     }
     try
     {
         var reporte = new Report.ReportWarehouse();
         reporte.DataSource         = Session["DSDISEÑO"];
         ASPxDocumentViewer1.Report = reporte;
         ASPxDocumentViewer1.DataBind();
         GetWarehouse();
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }