NAV autoupdate through C#

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
edited 2009-08-14 in Download section
NAV autoupdate through C#
Introduction

This sample application is developed in C# as a library with the project name "ImportFOB". The DLL "ImportFOB.dll" can be used in a C# Windows application to import the Microsoft Dynamics NAV FOBS into NAV without opening the NAV Object Designer. This sample DLL uses the Microsoft runtime COM Interop services. This DLL has functions which can be used to import and export FOB into NAV. The sample Windows application created is used to demonstrate the import functionality without opening and using the NAV Object Designer.
I had developed "ImportFOB" as a library project which can be used in any project as a reference to import and compile NAV FOBS without opening the NAV Object Designer.

For the demo purpose, I have provided a sample Windows application developed in C# to provide a user interface that anyone can use to import the following FOB types to Microsoft Dynamics NAV:
- CodeUnit
- Form
- Report

We can use "ImportFOB.dll" to also develop our own version management system for Microsoft Dynamics NAV.

Scenario 1

If Dynamics NAV is not installed as a database server and if you are using NAV on a PC for testing this sample application, then it is necessary to run the NAV client and open a sample database. In this case, the sample application will automatically connect to the database and will import the desired FOB to NAV.

Scenario 2

If Dynamics NAV is installed as a database server, then it is not required to open the NAV client. The only requirement is that the NAV database server must be running. We will create the DLL in Step 1 and the sample application in Step 2. The Sample application will use the DLL as a reference.

This ImportFOB DLL can connect to a NAV Native database or a NAV Native database server.

http://www.mibuso.com/dlinfo.asp?FileID=1088

Discuss this download here.

Comments

  • janpieterjanpieter Member Posts: 298
    Maybe good to know; i don't think it imports and/or exports FOB files, but only object TXT files.

    What is the difference with this application except for the sample?
    http://www.mibuso.com/dlinfo.asp?FileID=1012

    Seems like the same DLL.
    In a world without Borders or Fences, who needs Windows and Gates?
  • abhishekpareekabhishekpareek Member Posts: 150
    it allows to import the fobs in text format only.
    In this download there are two parts.First one is the dll and second is the c# windows application which is using the dll. The code in the site (gotocal)is not in the form of dll.Please download the application from gotcal and run it then your will found that it will run in the form of windows application to display the contents of fobs in text editor.
    In the dll that I had provided although it is using the same concept but it allows any one to reuse it and add their own code wihout reworking.The sample application that I had provided is demonstrating how easily we can use this dll to import the text fobs without opening navision object designer.The dll and sample application is developed in c#.

    Thanks,
    Abhishek
  • lyotlyot Member Posts: 202
    Some things aren't clear to me...

    In oder for the sample application to work, does my nav client needs to be connected to the db & enterprise?
    If this is not the case, where do I specify in what db & company I want to import my fob/txt?

    Does it work on Nav 2009?
  • abhishekpareekabhishekpareek Member Posts: 150
    Yes,your client need to be connect to db ,then only this application will import the object to that client.

    Thanks,
    Abhishek Pareek
Sign In or Register to comment.