Hi,
I am using Navision and the CFRONT interface. As long as I install everthing under
"c:\programme......"
everthing works fine. As soon as I install the NAVISION client in an other directory I am getting problems with the attached VBS script. It seems to me that the setnavisionpath is not working correctly or I am calling it wrong.
strServer = "nav server"
strNetType = "TCP"
strDatabase = ""
strUsername = "myuserr"
strPWD = "mypassword"
On error Resume Next
Set CFRONT = CreateObject("cfront.cfrontctrl.1")
CFRONT.StopOnAllExceptions = True
CFRONT.HideError = False
CFRONT.SetNavisionPath("d:\NAV\Client")
CFRONT.ReleaseAllObjects
CFRONT.ConnectServerAndOpenDatabase "NDBCN", strServer, strNetType, strDatabase, 10000, false, false, strUsername, strPWD
If err.number <> 0 Then
msgbox(err.description)
else
msgbox("ok!")
End If
When I call the sample.exe with:
C:\Programme\Microsoft Business Solutions-Navision\SDK\CFRONT>sample.exe -p"d:\N
AV\Client"
it works fine.
I have no idea what's wrong with the vbs script but I would appreciate any help.
Thank you,
Guido
0