Microsoft dynamics ax 2012.
Добрый день. При попытке распечатать отчет Excel в пакете выдает следующие ошибки:
"Method 'open' in COM object of class 'Workbooks' returned error code 0x800A03EC (<unknown>) which means: Microsoft Excel cannot access the file 'C:\Users\Administrator\AppData\Local\Temp\AxReports\ТОВАРНАЯ НАКЛАДНАЯ-000368.xlsx'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook."
"Cannot create Microsoft Office Excel workbook."
"File ’C:\Users\Administrator\AppData\Local\Temp\AxReports\ТОВАРНАЯ НАКЛАДНАЯ-000368.xlsx’ cannot be opened."
Оно доходит до строки m_comDocument = comWorkBooks.open(_filename) и выдает ошибку(класс comExcelDocument_RU метод openDocument).
X++:
if (m_comApplication)
{
comWorkBooks = m_comApplication.workBooks();
this.finalizeCOM(m_comDocument);
m_comDocument = comWorkBooks.open(_filename);
comWorkBooks.finalize();
return true;
}
Буду признателен за помощь!