setting Shape.WrapFormat.Type failing with RPC_E_SERVER_FAULT

  • Thread starter Ram Kumar Karnataka
  • Start date
R

Ram Kumar Karnataka

Hello All,
I'm using Word automation using VS2005 and C#.
I'm facing a strange problem while setting Shape.WrapFormat.Type to
Word.WdWrapType.wdWrapSquare.

In all the machines where our application runs(German & English MS-Word),
the following line is getting executed fine except in one machine where it
failed with RPC_E_SERVER_FAULT exception.
shape.WrapFormat.Type = Word.WdWrapType.wdWrapSquare;
That machine has Word2003 with SP3. Even its failing in that machine when
we try to get the WrapFormat.Type property.

Please find below the exception call stack

//While getting the property WrapFormat.Type

23.07.2008 08:08:49 Exception
Type=System.Runtime.InteropServices.COMException
Message=Beim Aufruf einer COM-Komponente wurde ein HRESULT E_FAIL-Fehler
zurückgegeben.
Stack=
bei Word.WrapFormat.get_Type()
bei WordAutomation.AddText(Shape shape, String text)



//While setting the property WrapFormat.Type

21.07.2008 14:08:44 Exception
Type=System.Runtime.InteropServices.COMException
Message=Ausnahmefehler des Servers. (Ausnahme von HRESULT: 0x80010105
(RPC_E_SERVERFAULT))
Stack=
bei Word.WrapFormat.set_Type(WdWrapType prop)
bei WordAutomation.AddText(Shape shape, String text)



Can you please throw some light why this can happen. Can you please reply me
back asap. And this PC has German Word and German XP.


Thanks
Best Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top