Emailing Issues

Axle
Axle Member Posts: 2
Hi All!

I have read a lot of topics about issues with Navision 4 SP 3 and Outlook 2003. There has been no conclusive decision on why emailing using standard codeunit 397 and Outlook 2003 doesn't work. I have been trying to declare a variable of that codeunit and call the NewMessage function and an error comes up saying that Automation variable has not been instantiated. This error comes from the standard codeunit. However, the same code on later versions works. When I have a look at the codeunit, I find that the variable is instantiated (?)

IF ISCLEAR(OApplication) THEN
  CREATE(OApplication);

//OK Till here.
This statement throws the error-
IF (NOT OApplication.Logon(TRUE,'','',FALSE,FALSE)) THEN BEGIN
  OApplication.Logoff;
  EXIT
END;

Any work arounds? Removing and reinstalling Outlook is not really the option.

](*,)

Cheers

Comments

  • kine
    kine Member Posts: 12,562
    Check, that the OLHandler.dll is installed and registered in your NAV client folder. It is installed if you select it during the install. If you didn't install the NAV client or you didn't selected it during install, you can have this problem.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.