Let NAV BEEP! (with .NET Interop and Microsoft Dynamics NAV 2009 R2)

Let NAV BEEP! (with .NET Interop and Microsoft Dynamics NAV 2009 R2)

  • Comments 3

It is known that in Role Tailored Based environment BEEP C/AL function is not supported.

http://msdn.microsoft.com/en-us/library/dd301405.aspx

This simple blog is based on SystemSounds Class from System.Media namespace

http://msdn.microsoft.com/en-us/library/ms143809.aspx 

My Ingredients :

  • NAV 2009 R2 Role Tailored Client
  • Windows 7 Enterprise

Attached you will find 1 unbounded page object in TXT format.

The code is fairly simple: there are just 5 lines of code related to 5 page actions.

dnBeep.Asterisk.Play();

dnBeep.Beep.Play();

dnBeep.Exclamation.Play;

dnBeep.Hand.Play();

dnBeep.Question.Play();

In order to have more fun with this object, I invite you to edit Control Panel:

Control Panel\Appearance and Personalization\Personalization

And push the sounds Action button (NOTE: normally “Question” is not present in system Themes) while switching between themes.

REMEMBER: Raise high the volume of your earphones / speakers.

These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.

Duilio Tacconi (dtacconi)

Microsoft Dynamics Italy

Microsoft Customer Service and Support (CSS) EMEA

Attachment: LetNavBEEP.txt
Leave a Comment
  • Please add 7 and 4 and type the answer here:
  • Post
  • Hi Duilio,

    Thanks for posting this - the code sample is useful! I ran it on my local NAV database (NAV2009 R2) and it works fine but each time it asks me "Your NAV client is trying to run an external component ... ". The options are "Allow this time but ask next time", and "Don't allow this time". Is there a registry setting I need to change to get rid of this annoying NAV message?

    Thanks,

    Chris

  • Thanks Chris.

    I should have answered to this request in the last two comments in this blog

    blogs.msdn.com/.../let-nav-speak-with-net-interop-and-nav-2009-r2.aspx

    Please, post here if those are useful for you too.

    Cheers

  • Hi Duilio,

    That info in the blog post has worked perfectly - thanks a lot!

    Cheeers,

    Chris

Page 1 of 1 (3 items)