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)).
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.
private void btnMailmerge_Click(object sender, RoutedEventArgs e) { var application = new Microsoft.Office.Interop.Word.Application(); var document = application.Documents.Add(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)