Tuesday 31 May 2011

Integrate Google Maps with NAV 2009

Hi All,
         I am sharing a sample code to Integrate google maps in NAV 2009.

1) Create a Codeunit.
2) Type the following code :

SHELL('C:\Program Files\Internet Explorer\iexplore.exe','http://maps.google.com?q=New Delhi,India');
                                      OR
HYPERLINK('http://maps.google.com?q=New Delhi,India');

In the above code I have called the SHELL Function which accepts two parameters
a) File Path
2) Url : You can fetch the customer's or vendor's address and pass it to second parameter

Enjoy!!!!! 

No comments:

Post a Comment