You cannot create an Automation object "ScriptObj" on Microsoft Dynamics NAV Server. You must create it on a client computer.

Hi,

Can anyone give idea?

I am using Scriptcontrol1.0 in code unit to open openoffice xl files.I just declare scriptobj as scriptcontrol1.0 as type.

I am getting compile error .

You cannot create an Automation object “ScriptObj” on Microsoft Dynamics NAV Server. You must create it on a client computer.

Thanks.

hi,

use create(,false,true) instead of create()

otherwise nav tries to run the automation on the server, which is not allowed for nav vs. >= 2013

you need an installed version of the automation on each client computer.

follow http://msdn.microsoft.com/en-us/library/dd355255(v=nav.70).aspx

p.s.: please always tag your postings with at least the nav version (nav 2009, nav 2013,…)

Hi Jonathan,

Thanks.I am doing upgrade from nav 4.0 to nav 2013.In nav 4.0 they are using automation type in the codeunit to create xl file.