I tried to use "Microsoft.Office.Interop.PowerPoint" in a simple WPF, but I got an error which was caused by the first line:
Microsoft.Office.Interop.PowerPoint.Application myApp= new Microsoft.Office.Interop.PowerPoint.Application();
The error looks the following way:
An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: Cannot create instance of 'MainWindow' defined in assembly 'PowerPointApp, Version=1.0.0.0, Culture=neutral.
How to fix it? Should I add something to xaml?