Cannot access adjustments of a Word shape - 02-06-2010 , 09:10 AM
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
Hint: I am using MS Visual Studio 2008 Tools for Office together with
Thanks in advance for your help.
|Thread Tools||Search this Thread|