Dynamics NAV 2013

sujatsujat Member Posts: 5
I am trying to use Excel Automation in Dynamics 2013 on Server. I created my code successfully but when I try to compile the code it giving following error.

"You cannot create an Automation object "xlApp" on Microsoft Dynamics NAV server. You must create it on client computer"

Can you Please provide me solution.


Thanks

Comments

  • sujatsujat Member Posts: 5
    I got the solution myself

    Previously i wrote a code like :
    CREATE(xlApp);

    Now I changed my code with following
    CREATE(xlApp,TRUE,TRUE);
  • ThomasjuelThomasjuel Member Posts: 2
    I can see you found the solution :thumbsup: . NAV 2013 do not support server side com automation anymore, you have to make sure it is running on the client
    http://msdn.microsoft.com/en-us/library ... 5(v=nav.70).aspx
    [Ok :=] CREATE(Automation [,NewServer] [,OnClient])
    onclient should be TRUE....
Sign In or Register to comment.