web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Print orders From .NET

(0) ShareShare
ReportReport
Posted on by 179

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

I have the same question (0)
  • Verified answer
    Jaime Figueras Profile Picture
    179 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans