RS First Dynamics NAV Blog


...from NAV 3.60 to NAV 2013
Archivio Posts
Anno 2015

Anno 2014

Anno 2013

Anno 2012

Anno 2011

Anno 2010

Anno 2009

Anno 2008

Anno 2007

Writing an automation for Dynamics NAV C#

Original link

http://techblog.byllemos.com/2008/10/writing-an-automation-for-navision-in-c/

 

REGISTER

You can not registrate the automation directly through VS2008. Here you have to use regasm and gacutil. Regasm is a part of your framework, where as gacutil is a part of Microsoft SDK.

 

UNREGISTER

Ex. on a dos script for registring the automation:

set regasm=%windir%\Microsoft.NET\Framework\v2.0.50727\regasm.exe
set gacutil=C:\program files\Microsoft SDKs\Windows\v6.0a\bin\gacutil.exe

%regasm% “myAutomation.dll” /tlb:myAutomation.tlb
%gacutil% /i “myAutomation.dll”

 

and an example for unregistring the automation:

@echo off
set regasm=%windir%\Microsoft.NET\Framework\v2.0.50727\regasm.exe
set gacutil=C:\program files\Microsoft SDKs\Windows\v6.0a\bin\gacutil.exe

REM Unregister types
%regasm% /unregister /tlb:myAutomation.tlb “myAutomation.dll”
%gacutil% /u “myAutomation”

Categoria: Dynamics NAV ALL
giovedì, 25 mar 2010 Ore. 16.26
Statistiche
  • Views Home Page: 416.015
  • Views Posts: 844.652
  • Views Gallerie: 0
  • n° Posts: 345
  • n° Commenti: 0
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003