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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.06.2011, 09:35   #9  
wolfstein is offline
wolfstein
Axapta Retail User
Axapta Retail User
 
51 / 91 (4) ++++
Регистрация: 05.07.2006
В общем, разобрались.
Шаблон Excel-файла для вставки в него текста через буфер обмена, открывался методом SysExcelWorkbooks_XP.open(...), в котором 4-м параметром идет формат разделителя, по умолчанию там стоит _format = 5 (без разделителя). Проблема разрешилась передачей _format =1 - в качестве разделителя используется символы табуляции.
X++:
public boolean open( str _fileName,
                     int _updateLinks = 0,                          // Specifies the way links in the file are updated.
                     boolean _readOnly = false,                     // True to open the workbook in read-only mode.
                     int _format = 5,                               // If Microsoft Excel is opening a text file, this argument specifies the delimiter character.
                     str _password = '',                            // A string that contains the password required to open a protected workbook.
                     str _writeResPassword = '',                    // A string that contains the password required to write to a write-reserved workbook.
                     boolean _ignoreReadOnlyRecommended = false,    // True to have Microsoft Excel not display the read-only recommended message.
                     int _origin = #xlWindows,                      // If the file is a text file, this argument indicates where it originated. See #Excel for modes.
                     str _delimiter = '',                           // If the file is a text file and the Format argument is 6, this argument is a string that specifies the character to be used as the delimiter.
                     boolean _editable = false,                     // If the file is a Microsoft Excel 4.0 add-in, this argument is True to open the add-in so that it’s a visible window.
                     boolean _notify = false,                       // If the file cannot be opened in read/write mode, this argument is True to add the file to the file notification list.
                     int _converter = 1,                            // The index of the first file converter to try when opening the file.
                     boolean _addToMru = false,                     // True to add this workbook to the list of recently used files.
                     boolean _local = false,                        // True saves files against the language of Microsoft Excel (including control panel settings).
                     int _corruptLoad = 1,                          // See Microsoft description.
                     boolean _openConflictDocument = false          // True to open the local conflict document.
                   )
{
...
}
За это сообщение автора поблагодарили: Zabr (8), Player1 (5).
Теги
excel, буфер обмена

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Исследование скорости экспорта данных из Axapta в Excel (коллективный эксперимент) Gustav DAX: База знаний и проекты 79 13.02.2014 13:18
Sample Design Patterns: Microsoft Dynamics AX - Remedy for slow Microsoft Excel import Blog bot DAX Blogs 0 29.05.2011 17:13
[Excel] - Несколько версий Excel на машине клиента Андре DAX: Программирование 11 07.08.2007 13:45
Свертка строк при выводе из Аксапты в Excel Zabr DAX: Программирование 20 21.02.2006 15:21
Подвисание Excel при выводе из Axapta Ser DAX: Функционал 4 24.07.2003 13:59

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 08:23.