Hi, I am using web services to create sales orders in NAV from .NET
After create the order in .NET I would like open the NAV document and print it automatically.
Now I am using this, and I receive correctly the URL, but to invoke NAV I must Copy the url and paste it in explorer, so I can view it and print it.
URL:=GETURL(CLIENTTYPE::Windows,'SINASE ALFONSO, S.A.',OBJECTTYPE::Page,130,Rec);
Do you know any way to open directly the Nav Order, and print it automatically? Thanks!
*This post is locked for comments
Using default Shell of VB doesnt works, but using this:
Public Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ShellExecute 0, "open", URL, vbNullString, vbNullString, vbNormalFocus
(Where URL is DynamicsNav://.........)
Works perfectly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156