title: Reading Client excel file using EPPlus
body: <p>I'm trying to read and excel file from the client using EPPlus without uploading it to the server or using a file upload control. The file will be located in the same location all the time.</p>
  
  <p>Is this possible? When looking it to it, I only found solutions which read from the server or this <a href="https://stackoverflow.com/questions/17955325/opening-a-client-side-excel-file-using-epplus">one</a> which uses a file upload control which I do not want.</p>
  
  <p>If it is not possible using EPPlus, what other method would you suggest to read an excel file in ASP.net C# from a client location (network drive available to all users) without sending it to the server and using the file upload control. </p>
  
  <p>Thanks for the help!</p>
  
  <p>EDIT: So iv added this active x script on my aspx page:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      var readExcel = function() {
          var excel = new ActiveXObject("Excel.Application");
          var excel_file = excel.Workbooks.Open("C:\\Users\\qt98512\\Desktop\\Book1.xlsx");
          var excel_sheet = excel_file.Worksheets("Sheet1");
          var data = excel_sheet.Cells(1, 1).Value;
          var data2 = excel_sheet.Cells(0, 0).Value;
          return data;
  
      } 
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Assuming that is correct, how do I access the returned data in my c# page? I have a button running the script like this:</p>
  
  <pre><code>protected void testbuttonExcel_Click(object sender, EventArgs e)
          {
              string text = ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "script", "readExcel();", true);
          }
  </code></pre>