Word Automation in C# app exception "The server threw an exception

D

David

Hi to all!
we have .NET (C#) winform app that connects to Word 2003 application,
creates new Word document in background and adds text, shapes, pictures to
this document. In case Word is defined as email editor in Outlook 2003 and
during our process user opens email item and forwards it an excpetion is
being thrown : "The server threw an exception. (Exception from HRESULT:
0x80010105 (RPC_E_SERVERFAULT))"

This is a code where excption occurs :
Word.Shape currentShape = wrdRng.Document.Shapes.AddPolyline(ref ooo, ref
range);
Seraching net and MSDN did not give us any meaningful explanation.
Any help will be greatly appreciated.
David
 

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