Microsoft.Office.Interop.Excel's merge method when deployed to an LLS file results in an error

peiyuan yan 0 Reputation points
2023-06-13T08:15:50.9766667+00:00

User's image

System.Runtime.InteropServices.COMException: The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
   on System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperType, MessageData& msgData)
   In Microsoft.Office.Interop.Excel.Range.Merge(Object Across)
   At WebApplication2.XSDD.XSDD_EXCEL(String dh) position D:Print TemplateWebApplication2XSDD.cs:Line number 200
   At WebApplication2.WebService1.XSDD(String dh) position D:Print TemplateWebApplication2WebService1.asmx.cs: line number 472
Windows development | Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.