Visual Studio.NET

KEVINARCHER
Member Posts: 4
I would like to access some Visual Basic.NET DLL's I create for Navision. I heard there was a way to compile a certain way and the class would be availiable to COM apps. Is this possible and how do I do it. I was able to do this with VB 6 but seem to have lost the ability in .NET.
Kevin Archer
Developer
MSApple Technolgies
Developer
MSApple Technolgies
0
Comments
-
In order to use the .NET assembly class in Navision you need to expose it to COM, see help for ComClassAttribute.
Example:
<ComClass(Tst.ClassId, Tst.InterfaceId, Tst.EventsId)> _
Public Class Tst
Public Const ClassId As String = "B153F571-F3B1-4b9b-BC5F-
Public Const InterfaceId As String = "9850CF4D-48A9-4fed-AD60-
Public Const EventsId As String = "37682080-B166-400d-881E-
'This sub is required
Public Sub New()
MyBase.New()
End Sub
/Regards,
Bruno0 -
Great I can now see the methods and properties. I have yet another question though. I want to pop open a Visual Basic form and let the user enter information and then return it to Navision. I am able to start the form but Navision forces it to the background and I cant get it to get focus. THere is an application similar to what I am trying to accomplish in the downloads section which is a text editoe that allow users to enter more then 250 characters and return it to navision. What is the correct way to pop open this form. Thanks for your help.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions