public override byte[] GetData(string url)
 {
     // Get a dataset row containing the report.
     StorageDataSet.ReportStorageRow row = FindRow(url);
     if (row != null)
     {
         return(row.Buffer);
     }
     return(new byte[] { });
 }
 public override void SetData(XtraReport report, string url)
 {
     StorageDataSet.ReportStorageRow row = FindRow(url);
     // Write the report to a corresponding row in the dataset.
     // If a row with a specified URL field value does not exist, create a new one.
     if (row != null)
     {
         row.Buffer = GetBuffer(report);
     }
     else
     {
         int id = ReportStorage.Rows.Count;
         report.Extensions["StorageID"] = id.ToString();
         row = ReportStorage.AddReportStorageRow(id, url, GetBuffer(report));
     }
     DataSet.WriteXml(StoragePath, XmlWriteMode.WriteSchema);
 }