Referece missing for AddShapes2()

Moisej Braver 1 Reputation point
2021-06-09T09:37:26.787+00:00

I am trying to insert a picture into an excel file without compression and found a method Shapes.AddPicture2() suitable for this case.
However, even after adding the reference to Microsoft Excel 14.0 Object Library the method is not available. only Shapes.AddPicture() appears. Does anybody know, which additional reference or interop version I am missing?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,404 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.