Skip to main content

Notifications

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

  • Verified answer
    Jaime Figueras Profile Picture
    179 on at
    RE: Print orders From .NET

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans