In your Project, expand the “References”, find the Microsoft Office Interop reference. Right click it and select properties, and change “Embed Interop Types” to false.
In your Project, expand the “References”, find the Microsoft Office Interop reference. Right click it and select properties, and change “Embed Interop Types” to false.