But new issue is generate when I debug this code mention below is the error.
Can you please help me to solve this issue I engaged in this issue so many days so please help me.
Microsoft Dynamics NAV
---------------------------
Break On Error Message:
A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookWriter.Create failed with this message: Access to the path 'C:
ProgramData
Microsoft
Microsoft Dynamics NAV
90
Server
MicrosoftDynamicsNavServer$DynamicsNAV90
users
default
DESKTOP-UNIKUL1
RAKSHITH UNIKUL
TEMP
__TEMP__958aff79760f43fda6c8ec7a3b1d3cee.tmp.xlsx' is denied.
---------------------------
OK
---------------------------