Cannot access adjustments of a Word shape -
02-06-2010
, 09:10 AM
Hi,
I am developing a Word addin, which inserts a picture from
clipboard into a canvas shape. So far, so good.
After insertion I try to access the Adjustments property of the
inserted shape (= Pic).
But the corresponding statement
Dim Adjustments As Word.Adjustments = Me.Pic.Adjustments
results in an InvalidCast exception telling me something like
"...ComObject" cannot be converted into interface type
"Microsoft.Office.Interop.Word.Adjustments" ... HRESULT: 0x80004002
(E_NOINTERFACE).
Hint: I am using MS Visual Studio 2008 Tools for Office together with
Word2003.
Thanks in advance for your help.
Best regards
Bernd |