report as an email attachment

darshanmdarshanm Member Posts: 280
Namaste!

one of client is having below requirement.

he wants to put certain reports in Job Scheduler. When these
reports gets executed, Navision should automatically create an
email attachment and send it to the respective user. may be
through Outlook client.

Is this possible?? if yes what code should be witten for creating
email attachment? :(
Darshan Mungekar
Senior Consultan

Comments

  • arvinder_singharvinder_singh Member Posts: 10
    Yes it is possible i did it one of my cleint a long time using auto mation server

    service Unknown Automation Server.MAPIHandler and

    'Microsoft Scripting Runtime'.FileSystemObject

    but the only problem is that it send the file in HTML format. then there is problem when report format is complicated.
  • DriesDries Member Posts: 29
    Why don't you send it as a PDF file?
  • darshanmdarshanm Member Posts: 280
    Hi!

    Igot the logic... we have used Report.savehtml() function to
    first save the file and mail codeunit functions to send it
    through Outlook 2003 client.
    Darshan Mungekar
    Senior Consultan
Sign In or Register to comment.