Reputation: 1318
I want to show an excel file inside my wpf window like this:
if I Create an excel application and then set Visible property to true, Excel application will open and I don't want this behavior.
Microsoft.Office.Interop.Excel.Application xlsxApp = new Microsoft.Office.Interop.Excel.Application();
Workbook workbook = xlsxApp.Workbooks.Open(path);
xlsxApp.Visible=true; //Excel will open, I don't want this.
Upvotes: 2
Views: 10679
Reputation: 3378
What you are looking for is Excel embedded in a Wpf Control. This page could be a good start. To sum it up, it must be included in your UI using ActiveX.
There is not pure WPF excel control per se.
If you need to mimic some excel features without the need to open an existing file, there are plenty of "excel like" controls available on the internet free or not. For instance this one.
Upvotes: 3