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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 21.08.2015, 16:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
palleagermark: OpenXML teaser
Источник: http://www.agermark.com/2015/08/openxml-teaser.html
==============

If you want to be able to create an Excel document from a batch job or on a machine where Excel is not installed, you can use the Open XML standard to create the file without ever opening the Excel application.

You would of course need some X++ wrappers, but I have learned today that these are actually already created for some Russian localizations.

Check this out:
static void OpenXML_Excel_Demo(Args _args)
{
Counter c;
XMLExcelDocument_RU excelDocument;
str templateFilename = @'F:\SomeTemplate.xlsx';
str newFilename = @'F:\OpenXML_Excel_Demo.xlsx';

// Create a new document
// This implementation works with template files, so I have just created an empty spreadsheet to act
// as template
excelDocument = XMLExcelDocument_RU::newFromFile(templateFilename, newFilename);

// Create some column headers
for (c = 1; c != 10; c++)
{
excelDocument.insertValue(
ComExcelDocument_RU::numToNameCell(c, 1),
strFmt("Column %1", c));
}

// Close and save the document
excelDocument.closeDocument(true);
}
Use the cross reference tool to see more usage of this in AX.

Источник: http://www.agermark.com/2015/08/openxml-teaser.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
palleagermark: Team Foundation Service is now live Blog bot DAX Blogs 0 02.11.2012 17:11
palleagermark: Company Visualizer is updated Blog bot DAX Blogs 0 24.01.2012 21:11
palleagermark: Print images directly from AX without user interaction Blog bot DAX Blogs 0 04.11.2011 17:12
palleagermark: Querying printer queues from X++ Blog bot DAX Blogs 0 13.09.2011 23:11
palleagermark: Find you SID Blog bot DAX Blogs 2 04.07.2011 20:20
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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