public XtraReport Load(string reportID, IReportSerializer designerReportSerializer) { StorageDataSet.ReportStorageRow row = FindRow(reportID); using (MemoryStream ms = new MemoryStream(row.Buffer)) { return(XtraReport.FromStream(ms, true)); } }
public void SetData(string reportId, string title, XtraReport report) { StorageDataSet.ReportStorageRow row = FindRow(reportId); if (row != null) { row.Buffer = GetBuffer(report); } else { row = ReportStorage.AddReportStorageRow(reportId, title, GetBuffer(report)); } DataSet.WriteXml(StoragePath, XmlWriteMode.WriteSchema); }