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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.09.2018, 18:14   #14  
ax_mct is offline
ax_mct
Banned
 
2,548 / 1091 (0) ++++++++
Регистрация: 10.10.2005
Адрес: Westlands
Цитата:
Сообщение от belugin Посмотреть сообщение
Это не поможет так как нет чего-то смог из коробки печатает excel и работает на сервере
Тут интересный момент
В принципе можно

Цитата:
We are using windows service on a server that has Excel installed. That service is requested by Web Application from a different server, making the service render the document and save it on the shared file server where Web Application then grabs it.

The windows service uses COM object's functions to create an Excel instance and render xml structure of a document using a blank template, then save it using the COM functions save it in specific format.
X++:
this.m_Excel = new Application();
this.m_Excel.Visible = false;
this.m_Excel.ScreenUpdating = false;
this.m_Excel.DisplayAlerts = false;
this.m_Workbook = m_Excel.Workbooks.Add(BlankTempleteFilePath);
this.m_Sheet = (Worksheet)m_Workbook.Worksheets[1];

// blablabla, filling the document...
this.m_Workbook.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, resultPath, XlFixedForm
https://social.msdn.microsoft.com/Fo...forum=exceldev

Но не рекомендуется
Цитата:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
http://support.microsoft.com/kb/257757/en-us
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
k3technical: Running an Electronic Report from a menu item Blog bot DAX Blogs 3 05.09.2017 15:37
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
sumitsaxfactor: Report Design and Controls Blog bot DAX Blogs 0 05.09.2012 22:11
ax-erp: Save SSRS report to pdf that uses Controller classes [Dynamics AX 2012] Blog bot DAX Blogs 0 19.07.2012 18:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11

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

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

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