-4

Can anyone suggest me an approach to retrieve the excel file details (Alternative of Interop)?

I want to track user working excel file details (like workbook name, sheet name, formula present in the sheet/workbook, Macro value.)

davegson
  • 8,205
  • 4
  • 51
  • 71

1 Answers1

0

If the Excel file is an OpenXML file (XLSX or similar extensions), you could simply read it using Packaging in .NET. You have to extract all data yourself then, which is quite some work. You could use the DocumentFormat.OpenXml to make reading a little easier.

Another option is to use EPPlus, which effectively does the same, but saves you a lot of work.

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325