I am trying below tiny code to embed excel inside my Winform application.
string mySheet = @"C:\Apps\source\repos\TestApp\TestSheet.xlsx";
webBrowser1.Navigate(mySheet, false);
But my issue is that excel is popping out of the WinForm application, in order to stop that I required to modify registry value "BrowserFlags" to 0 on a path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Sheet.12
My question is that how to avoid any registry modification or any modification which require admin privileges.