HighTechTalks DotNet Forums  

Cannot access adjustments of a Word shape

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss Cannot access adjustments of a Word shape in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bernd Schend
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.