Options

Codeunit 397 Mail

aztecconsultingaztecconsulting Member Posts: 55
So i can see how the codeunit can create a message and send it, but what I need now is a way to generate a report and send it as an attachment.

Any ideas?

Comments

  • Options
    Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Save the report as HTML in your temp folder and send it.

    Use 'ENVIRON('TEMP')' do define your temp folder.
  • Options
    s.delikostovs.delikostov Member Posts: 32
    IF Rep.SAVEASHTML(AttachFileName) THEN
      Mail.NewMessage(ToName,CCName,Subject,Body,AttachFileName,OpenDialog);
    
    Stamen Delikostov
    Navision Solution Developer
    Intelligent Systems Bulgaria
  • Options
    KarenhKarenh Member Posts: 209
    Is there a way to save it as a PDF within Navision and email the PDF file?

    I looked at gotomaxx but I did not see a method for doing that.
  • Options
    krikikriki Member, Moderator Posts: 9,090
    There are some programs that, when installed, create a virtual printer. If you print to that printer, it creates a PDF.
    Like PDF995 or pdfmailer.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.