|
Hi all,
I have created a windows service for printing a few types of files like doc, htm, txt and xls. I will open xls files using MS Excel TLB 12.0 and other files (doc, htm, txt) using MS Word TLB 12.0. Then I will set the my printer as default and will print it. In MS Office 2003 version, all things are working fine (with TLB version 11.0), but when I am trying it in Office 2007, the Doc.PrintOut() function is giving an error as shown below.
The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Excel files are working fine. And I have created a windows application (exactly same as service) for debugging purpose and that application is not throwing the above error (Its working fine).
I tried to implement IMessageFilter (CoRegisterMessageFilter), but even then also it is not working. I got this idea from a forum. I am not sure whether I implemented it in the correct way or not.
If anybody know how to slove it please let me know.
|