This is the sample code for Sending Report through email in axapta. This cod you can use in any version of Ax (3.0,4.0,2009,2012 etc)     void reportSendMail(PrintJobSettings p1)    {    //SysINetMail m = new SysINetMail(); // Mo : Commented out old AX code    System.Net.Mail.MailMessage mailMessage;    System.Net.Mail.Attachment attachment;    System.Net.Mail.AttachmentCollection attachementCollection;    System.Net.Mail.SmtpClient myMail;    System.Net.Mail.MailAddress mailFrom;    System.Net.Mail.MailAddress mailTo;    str userMailAddress;    str receiverMailAddress;    str mailBody;    str smtpServer;    fileNameOpen fileNameForEmail;    str mail;    FileIOPermission perm;    userinfo userInfo;    //end Declaration    str fileName = 'axaptareport';    ;    if (p1.format() == PrintFormat::ASCII)    fileNameForEmail = subStr(p1.fileName(),strLen(p1.fileName())-3,-999)+'TXT'; // Mo : NL    //fileName = fileName + '.txt'; // Mo Commented this line    else if (p...
Microsoft Dynamics Ax,AIF,Axapta, Enterprise portal,,Microsoft , United State,U.S., SharePoint , BI Tools, Performance Tuning, SSRS,Business Logic,Ax ERP Errors and solution,Dynamics 365 Errors Solution,Business software .