Показать сообщение отдельно
Старый 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