Paste image through clipboard results in intermittent RPC_E_CALL_R

M

Matram

Hi,

I have a NET 2 application which builds a Word report through automation. It
is mostly text but with a few charts. Charts are drawn to the Clipboard and
then transferred to Word by a range.Paste().

The application has been working like this for some years. I have recently
started getting intermittent errors: RPC_E_CALL_REJECTED when doing the
Paste. If I disable the Paste everything is OK.

I am using Word 2003. I am not aware of any changes done to the code in this
area.

The report generation is run on a separate thread which has its apartment
state set to STA.

Any suggestions for how to further debug or a possible workaround?

Mats
 

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