Example #1
0
        public async Task <ActionResult> Reports(string reportId)
        {
            ReportEmbeddingData embeddingData =
                await PbiEmbeddedManager.GetEmbeddingDataForReport(reportId);

            return(View(embeddingData));
        }
Example #2
0
        public async Task <ActionResult> Reports(string reportId)
        {
            ReportEmbeddingData embeddingData = await PbiEmbeddedManager.GetEmbeddingDataForReport(reportId);

            String conexion = ConfigurationManager.ConnectionStrings["dbconnection"].ConnectionString;

            con.ConnectionString = conexion;
            con.Open();
            comando.Connection  = con;
            comando.CommandText = "Insert into Reporte values ('" + embeddingData.reportId + "','" + embeddingData.reportName + "')";
            comando.ExecuteNonQuery();
            comando.CommandText = "Insert into usuario_reporte values (" + HttpContext.Session["id"] + ",'" + embeddingData.reportId + "')";
            comando.ExecuteNonQuery();
            return(View(embeddingData));
        }