Pass nav parameters through C/AL to a DLL in C#.

I am making a DLL to change the font format, size, color. . . for each field and I would like to know if it is possible to pass these parameters through C/AL to the DLL, so I don't have to be modifying the DLL for each change.

If someone has a guide or could explain it to me.

Thank you!

Answers

  • SanderDkSanderDk Posts: 64Member
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL
  • MendoNAVMendoNAV Posts: 3Member
    SanderDk wrote: »
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL

    Can in NAV 110?
  • SanderDkSanderDk Posts: 64Member
    MendoNAV wrote: »
    SanderDk wrote: »
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL

    Can in NAV 110?


    Yes, just create your function i your dll, and import it into NAV
  • MendoNAVMendoNAV Posts: 3Member
    SanderDk wrote: »
    MendoNAV wrote: »
    SanderDk wrote: »
    Depending on your NAV version it is possible.
    In your dll you create a methode with parameters in the function, when from C/AL you will see that you need to pass on the parameters.
    After that you need to handle the different parameter i your DLL

    Can in NAV 110?


    Yes, just create your function i your dll, and import it into NAV

    I already have the DLL imported to NAV working correctly, what I wanted to know is if through C/AL code values can be passed to avoid having to modify, compile and paste the DLL in the NAV/addin folder every time I want to make a change. I don't know if this is possible.
  • SanderDkSanderDk Posts: 64Member
    yes it can but your DLL need to be developed to receive values.
Sign In or Register to comment.