Hi,
I wrote .NET Component (C#), whith event. I tested her in Console application.
Now I want use this component as Automation in Codeunit.
I registred .NET Component with
regasm ...
gacutil ...
..
In Codeunit I see the event 'trigger', but if I Run codeunit function the event trigger is out of action.
Purpose .NET component: Receive mesage from MSMQ. (I need recive messages with several labels. Standard comunication components this can't ).
Question:How to write .NET Class with events witch are work in Navision?
Thanks for all reply
M@rtin
0
Comments
RIS Plus, LLC
Why not "even go there"?
It is a perfectly legit question, and an issue commonly met by .NET/NAV integrators.
You might have misunderstood what M@rtin asked...however here's my reply:
M@rtin, by your ability to see the methods/properties in your DLL from Navision I'm glad to say that you are on the right path.
You just need to set your interface to InterfaceIsIDispatch, and then do some magic within Navision.
What we tried was switching single instance on and off in Navision, declaring the object from scratch, and then suddenly out of the blue...it worked.
I wonder if it is a bug or a feature...hmmmm
And due to the complexity of a solution like that, they quite commonly charge NAV users much more than they should have to pay for a solution that can be met much more easily with some fairly uncomplicated NAV development.
No I didn't misunderstand, I actually know what I'm talking about.
RIS Plus, LLC
..and thereby implying that I do not...thanks champ.
Oh, just wanted to add, that occasionally some developers find the need/urge to not be dependent on standard components supplied in the package.
I didn't mean to get a rise out of you, but if I did...well then you've just made my day.
What do you mean? The MSMQ object model is not a standard package that is part of NAV. You can program C/AL to use many of the same automation components that you would use in Visual Studio. Many times it is not necessary to create additional external components to accomplish simple things by programming them in NAV directly.
RIS Plus, LLC