how to solve Exception:Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) in C#?

前端 未结 12 1170
梦谈多话
梦谈多话 2020-11-30 13:43

I have written a C# code in console application to open two excels and copy and paste data from one excel to another excel. It was working fine until the destination excel\'

12条回答
  •  借酒劲吻你
    2020-11-30 14:11

    Make sure you check your Office installations to make sure they are complete.

    otherwise try following

    try App visibleity false after the all Data is writin then turn on the Visibility ex Dim wapp As new excel.Application .... . . wapp.Visible = false

    'do your writing .. . . . .

    'then turn on your visibility

    wapp.Visible = True

提交回复
热议问题