Пример #1
0
 public XtraReport Load(string reportID, IReportSerializer designerReportSerializer)
 {
     StorageDataSet.ReportStorageRow row = FindRow(reportID);
     using (MemoryStream ms = new MemoryStream(row.Buffer))
     {
         return(XtraReport.FromStream(ms, true));
     }
 }
Пример #2
0
 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);
 }