Export to excel problem


I am using dotnet variables in nav to do this.

I followed this link to do the export to excel.


when I run the report I am getting following error message

“A call to System.__ComObject.Open failed with this message: The type of one or more arguments does not match the method’s parameter type.”

I have given the following parameters for open function.



I am using NAV 2015 version

Can any body give some useful example or suggestion

Thanks in advance

Any suggestions…

follow https://community.dynamics.com/nav/f/34/t/180031