private void btnKaydet_ItemClick(object sender, ItemClickEventArgs e) { DevExpress.DashboardCommon.Dashboard rep = new DevExpress.DashboardCommon.Dashboard(); int iEkleyenID = 0; iEkleyenID = Genel.AktifKullaniciID; DashboardParameter prmUser = new DashboardParameter(); prmUser.Name = "EkleyenID"; prmUser.Type = typeof(System.Int32); prmUser.Value = iEkleyenID; prmUser.Description = "EkleyenID"; prmUser.Visible = false; rep.Parameters.Add(prmUser); MemoryStream stream = new MemoryStream(); rep.SaveToXml(stream); stream.Position = 0; byte[] RaporData = Genel.StreamToByteArray(stream); var IslemEkle = data.IUD_Evraklar(1, -1, RaporData, txtAdi.Text, txtAdi.Text, -1, -1, true, false, -1, -1, true, Genel.AktifKullaniciID).ToList(); if (IslemEkle != null && IslemEkle.FirstOrDefault().ID > 0) { //Ayar.InfoMesajGoster(Genel.DilGetirMesaj(1017), Ayar.MesajTipi.Bilgi, this); } }
public static void SaveDashboard(this IObjectSpace objectSpace, DevExpress.DashboardCommon.Dashboard dashboard, IDashboardDefinition template, MemoryStream memoryStream) { dashboard.SynchronizeModel(objectSpace, template); dashboard.SaveToXml(memoryStream); dashboard.ApplyModel(FilterEnabled.Always, template, objectSpace); }