Цитата:
Сообщение от
maldini
А причем тут версия Excel? Копирование файла с Excel не связано. Скорее всего проблема в доступе к файлу. Попробуй через
X++:
WinAPI::fileExists_RU
проверить есть ли файла.
X++:
void createNewFile()
{
#winAPI
str _path = WinAPI::getFolderPath(#CSIDL_Profile) + "\\Local Settings\\Temp\\loadRP.xls";
str _pathFind = WinAPI::getFolderPath(#CSIDL_Profile) + "\\Local Settings\\Temp\\loadRPF.xls";
;
if (WinAPI::fileExists_RU(fileName))
{
info("Detaction file :"+fileName);
}
else
{
info("? file :"+_pathFind);
}
if (WinAPI::copyFile(fileName, _pathFind, true) == 0)
{
forFindPath = _pathFind;
}
else
{
error ('Îøèáêà êîïèðîâàíèÿ ôàéëà:'+fileName+";"+ _pathFind);
error(Int2str(WinAPI::copyFile(fileName, _pathFind, true)) ) ;
throw exception::Error;
}
есть файл. и доступ есть