title: Interactive sorting inside merged report
body: <p>I am creating a report (DevExpress 17.1) that is merged from multiple other reports. I'm trying to provide interactive sorting for one of these reports but after clicking on the column header, instead of table sort, the whole document dissappears with text similar to "no pages to display". I'm setting interactive sorting according to this article: </p>
  
  <p><a href="https://documentation.devexpress.com/#XtraReports/CustomDocument5527" rel="nofollow noreferrer">https://documentation.devexpress.com/#XtraReports/CustomDocument5527</a></p>
  
  <p>and this is how my creating code looks like:</p>
  
  <pre><code>public override void Print()
  {
      ListReport listReport =
          new ListReport {DataSource = state.RetrievedList};
      var report = new XtraReport();
  
      report.CreateDocument(false);
  
      var reports = new XtraReport[] {new OtherReport(state), listReport};
  
      foreach (var item in reports)
      {
          item.CreateDocument(false);
          report.Pages.AddRange(item.Pages);
      }
  
      report.PrintingSystem.ContinuousPageNumbering = true;
  
      using (var printTool = new ReportPrintTool(report))
      {
          printTool.ShowRibbonPreviewDialog();
      }
  }
  </code></pre>
  
  <p>However, as soon as I change method to print only the list then report interactive sorting starts working properly. This how it looks when it works:</p>
  
  <pre><code>ListReport listReport =
      new ListReport {DataSource = state.RetrievedList};
  
  using (var printTool = new ReportPrintTool(listReport))
  {
      printTool.ShowRibbonPreviewDialog();
  }
  </code></pre>
  
  <p>How would I make it to work in my case?</p>