Forum Discussion

Bangarraju's avatar
Bangarraju
Icon for Microsoft rankMicrosoft
Dec 16, 2023

Issues with Excel file creation in Windows 2022 server

Hi ,

 

We are getting below error from the Code while creating an excel file .Can you please help us out here . we have provided the required access to the account on which the service

 

ystem.InvalidOperationException: CreateReportFile - Error while creating copy of Excel Template : ---> System.Runtime.InteropServices.COMException: The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
at Microsoft.Office.Interop.Excel.Workbooks.Add(Object Template)

No RepliesBe the first to reply

Resources