Skip to main content

How to run an External Application within Dynamics NAV

Perhaps you may have inquired the possibility of executing an external program within Dynamics NAV due to many reasons such as;

1. To run an external application like Windows Calendar or Skype within NAV
2. To run a Crystal Report using a Icon available in NAV

Whatever the reason, concept for making this a reality would be as follows;

Initially you may have to find out the directory path where the executable file of the external application is located. For example, let's assume that you are in need of calling the windows Calendar within Payment Journal Screen. You can search the calc.exe file where it is located. Mostly this is available in the windows System32 directory. Therefore the relevant directory path could be defined as 'C:\WINDOWS\system32\calc.exe'. In CAL, you could call the Calendar Control by giving the following command;

SHELL('C:\WINDOWS\system32\calc.exe');

This can be achieved by placing an additional command button in the Payment Journal Screen. In the 'OnPush' trigger, once you place the following CAL code you can display the Windows Calendar on top of the Payment Journal Screen.



For example, if you want to direct your browser to open a particular Web Site, for example www.microsoft.com you can do it by placing the following command;

HYPERLINK('http://www.microsoft.com');

Let's say if you want to open a PDF document you could do it by giving the following command in CAL;

HYPERLINK('D:\MyDocuments\80042A_00.pdf');

In the above case, D:\MyDocuments\ is the directory path where the relevant PDF file is located and the 80042A_00.pdf' is the PDF file name.

For instance, if you want to call an External Program using the Menu Structure, you will be able to do it by giving a reference to Code Unit in the relevant Menu Object; in the 'OnRun' trigger of the Code unit you can place you CAL commands to call the external application as explained above.

Comments

  1. Hi this is great site and go ahead with vast experiance,

    I have a problem. Can you release more tropic on RTC reports......

    AS a starting point lets talk about this issue.

    My Invoice in RTC have two or more pages and it is in tabular format(only column no horizontal line for each line items in the invoice.

    when it prints last line in Ist page I want to have horizontal line next to that to show the table is close.But currently my table is open for all the pages except last page.



    how can I do it?

    Hewa

    ReplyDelete
  2. Hi Hewa,

    Thanks for your feedback, however I am not that clear about your query.Could you please further explain about the expected functionality of the report.

    Prem

    ReplyDelete

Post a Comment

Popular posts from this blog

Upgrade from NAV 5 to NAV 2009 SP1 – A Quick Guide

Regardless of the version from which you are trying to do the upgrade, the whole process can be divided into two main phases as Object Upgrade and the Data Upgrade. Let’s first look at the Object Upgrade. In Object Upgrade, you have to identify all the customizations done in the current live version of the customer database and implement the same in a new 2009 SP1 database. Please remember that there are no short-cuts for this process. This is entirely a manual process, but you can make use of the existing tools such as Developer Toolkit. Using the Developer Toolkit you can compare/merge the original version 5 db and the current customer database wherein you can identify the differences between the two databases and implement the modifications in a new 2009 SP1 fresh database. Once you complete this process, you are through with the phase no 1. Remember that this is the most time consuming phase in an upgrade project. If you make any mistakes then you have to suffer a lot in the subseq...

Navision Employee Portal

Employee Portal provides a Web-based interface that gives employees quick access to mission-critical business information such as invoices, customer data, and some selected reports. Moreover, it real time integrates with the standard Microsoft Dynamics NAV database while collaborating with Microsoft® Windows® SharePoint® Services 3.0 (WSS 3.0) or Microsoft Office SharePoint Server 2007 (MOSS 2007) to provide you a browser based interface. Depending on the volume of transactions and the number of concurrent users, you can setup Employee Portal to run with either WSS or MOSS. However with MOSS, you would get additional support for making further developments. Employee Portal can also be identified as a Web Portal for Sales Persons who travels all over the country. In such instances, salesperson can logging to NAV and start creating Sales Orders or Sales Quotes as required by them. Let’s look at some typical screens available in the default Web pages. Item List /Product List Page This p...

Role Center Configuration

What is Role Center Role Centers are one of the most attractive features available in the latest of Microsoft Dynamics NAV 2009. Basically, a Role Center is designed to assist users by identifying the specific roles played in their day to day life. It improves the user friendliness of the ERP system by providing them an overview of the tasks and information relevant to their job and helps to plan their daily work. A role center is a Dash Board Screen for a specific segment of users where all the frequently used options of the ERP could be organized and make available in one single screen. These selected options may contain different data entry screens, batch jobs, reports, analysis screens, data integration objects such as Data ports, XML Ports and even URLs of frequently visiting web sites & email inbox / outbox as well. Microsoft Dynamics NAV 2009 delivers with 21 default Role Centers and they could be further optimized as per the specific needs of the customers. These Role Cente...