I have a marco eabled excel file with various controls like Checkbox, Radiobutton(OptionButton) etc. I can read this using Microsoft.Intorep services. But ASP.Net MVC and Core doesn't support fully Microsoft.Intorep services. I am struglling to do this with open xml library. Please shares your ideas
Thanks
Rupesh Kumar Dash

Leon DRank #851 · 2.6K reputationPosted Mar 21, 2022, 9:14 PM EDT
You can use Free Spire.XLS library to read .xlsm files.
https://www.e-iceblue.com/Download/download-excel-for-net-free.html
It is also available on nuget:
https://www.nuget.org/packages/FreeSpire.XLS/
using Spire.Xls; namespace ReadXlsm { class Program { static void Main(string[] args) { Workbook workbook = new Workbook(); workbook.LoadFromFile("Macro.xlsm"); Worksheet sheet = workbook.Worksheets[0]; string value = sheet.Range["A1"].Text; } } }