Click here to Skip to main content
15,671,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to generate information to a report through opening a word document. Once the word is now opened, the information are still running and replacing the searched textbox names. if ever the user clicked on the close button of the word it will display "Call was rejected by callee.(Exception from HRESUlt)". what should i do to properly just stop the running word document and close it without displaying error?

What I have tried:

so for that error i used background worker for it to be able to process like separately. Now i kinda resolve that error but once look at the word document and try to close it even still processing, i got now a new error for 'the message filter indicated that the application is busy.(Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER)). what should i do?
Updated 16-Aug-17 14:47pm

1 solution

I didn't done this with MS Word, but I did a lot with MS Excel, it is the same principle.
My first try would be to create an Addin for Word using VBA, and hook MS Word events.
i am trying to use background worker but i still figuring out how to.

A VBA Addin is a background worker, just sitting there, waiting for an event.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900