Hello,
I have written a report that loads data from a file to a table, and then sends a pdf to an address (using Outlook). It works fine when I run it, but when I try to run it automatically using NAS, I get an error like "Could not create an instance of the NS Outlook Syncronization Handler..."
How can I solve this?
Thanks!
0
Comments
I use SMTP-ocx (many info on this forum) for this... .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
When you run manualy, the mail is sended automaticaly, or a new message window is opened with the pdf as attachment??
If a window is opened, there is the problem.
Bye
I would really rather to use an OCX to send the email without having to use Outlook, but the only ocx I have found doesn't allow autentification, as I said above.
The problem is, you can't use anything with NAS that opens any kind of Window (Dataport, Dialog,...).
Have you tried to change codeunit 397 newmessage function using MAPI (like 3.60, 3.70 versions) ??. Put OpenDialog property to FALSE
Bye
I have already do that, using the "standard" code of Navision and a NAS (i put "standard" between quote, 'cause we change the code a little as ever...)
The only one problem was to post automatically the email : we only must to let a OUTLOOK opened window under a session of an administrator user.
Maybe it can help you, I hope so
I any of you has more ideas...
Try to use MAPI in your process.
Name DataType Subtype
MAPIHandler Automation 'Navision Attain ApplicationHandler'.MAPIHandler
Bye
Thanks again, all of you are being really helpful...
I have face this problem also before...
Just for sugestion; why don't you try downloading the "Express ClickYes" installation package from http://www.ContextMagic.com
It is tiny program that runs in the system tray and automatically clicks the Yes button.
Best Regards
Joel
I forgot to mentioned that is not a virus but it is a Outlook security prompt, that asks you to confirm mail sending from third party applications or access to Outlook's address book.
Best Regards
jm1
OLHandler (and concequently Codeunit 397 Mail) should work fine under NAS in Navision 4.0 SP1 ("Could not create an instance of the NS Outlook Syncronization Handler..." problem should be solved there). OLHandler does not produce any security warnings while sending e-mails - try to use it.
Dmitry
If you change your default Mail client from Outlook to Oitlook express the message must disapear
Bye