title: C#: EPPLUS: LoadFromCollection
body: <p>I have created a multidimensional list called Table, which is intended to be exported to an excel sheet. However, when I use the LoadFromCollection method, the resulting excel sheet only displays the following information.</p>
  
  <pre><code>Key   Value Item
  File        System.Collections.Generic.List`1[System.String]    
  Filter      System.Collections.Generic.List`1[System.String]    
  Date        System.Collections.Generic.List`1[System.String]    
  </code></pre>
  
  <p>Actually, each list hast 168 items (making a 169x3 array, including the headers).</p>
  
  <p>Here is the code.</p>
  
  <pre><code>private void button4_Click(object sender, EventArgs e)
  {
          MultiDimDictList Table = new MultiDimDictList();
          Table.Add("File", new List&lt;string&gt;());
          Table.Add("Filter", new List&lt;string&gt;());
          Table.Add("Date", new List&lt;string&gt;());
  
      // IN THIS PART I POPULATE THE TABLE
  
          ExportToExcel(Table, @"c:\2.xlsx");
  }
  
  public void ExportToExcel(MultiDimDictList Matrix, string sourceFiles)
  {
      FileInfo targetFile = new FileInfo(sourceFiles);
  
      using (var excelFile = new ExcelPackage(targetFile))
      {
          var worksheet = excelFile.Workbook.Worksheets.Add("Tables");
          var range = worksheet.Cells[2, 2];
          range.LoadFromCollection(Collection: Matrix, PrintHeaders: true);
          excelFile.Save();
      }
  }
  </code></pre>
  
  <p>What I'm doing wrong?</p>