AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.10.2018, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
goshoom: Report printed to e-mail
Источник: http://dev.goshoom.net/en/2018/10/re...ted-to-e-mail/
==============

You can easily send a D365FO report in email just by configuring print destination to Email and setting a few properties.



You can do the same from code, where you can also set the body. You must create an instance of SrsReportEMailDataContract class, fill it values and pass it to SRSPrintDestinationSettings.parmEMailContract(). Here is an example:

SrsReportRunController controller = new SrsReportRunController(); controller.parmReportName(ssrsReportStr(SysUserRoleInfo, Report));controller.parmShowDialog(false); SRSPrintDestinationSettings settings = controller.parmReportContract().parmPrintSettings(); settings.printMediumType(SRSPrintMediumType::Email);settings.fileFormat(SRSReportFileFormat::PDF);settings.fileName('SysUserRoleInfo.xlsx'); // Here we configure the emailSrsReportEMailDataContract emailContract = new SrsReportEMailDataContract(); emailContract.parmTo("user@example.com");emailContract.parmSubject("Security report");emailContract.parmBody("Hi there! Here is your report."); settings.parmEMailContract(emailContract); controller.startOperation();








Источник: http://dev.goshoom.net/en/2018/10/re...ted-to-e-mail/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
NAV Team: Report Execution Insights Blog bot Dynamics CRM: Blogs 0 30.10.2014 15:02
ax-erp: Walkthrough: Creating a Report Bound to a Report Data Provider Class (X++ Business Logic) [AX 2012] Blog bot DAX Blogs 0 20.09.2012 11:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
Nav developer: NAV 2009 - Report Designer - Introduction to the new environment Blog bot Dynamics CRM: Blogs 0 15.11.2008 20:21
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 20:13.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.