Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
am getting error :
Creating an instance of the COM component with CLSID {00020906-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010001 Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)).


I get at this line of code

C#
private void btnMailmerge_Click(object sender, RoutedEventArgs e)
        {
            var application = new Microsoft.Office.Interop.Word.Application();
            var document = new Microsoft.Office.Interop.Word.Document();//at this line am getting above error.


I could not understand what made to get this exception and what 've to do to solve it.
can any one suugestion how can i solve this issue.

Thanks in advance.
Posted
Comments
[no name] 31-Jul-13 5:47am    
http://support.microsoft.com/kb/329854

1 solution

C#
private void btnMailmerge_Click(object sender, RoutedEventArgs e)
        {
            var application = new Microsoft.Office.Interop.Word.Application();
            var document = application.Documents.Add();
        }
 
Share this answer
 
Comments
Member 13263376 15-Jun-18 3:35am    
@keerth516 are you sure that above code will solve the issue .

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