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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 19.08.2008, 08:09   #1  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
? AOT/Resources, error while using on a report
Hello,
I hope somebody already come across this error and will help to resolve the issue.
We have a report where we use one of the new Resources we created, it's just a simple .bmp file

All users are using the report and have no issues, except a couple people.

They are getting the following error:
"Unable to save data to the file "E:\Documents and Settings\user\Local Settings\TemporaryInternet Files\stamp.bmp"

This particular user have DAX client installed on E drive. We think it could be the reason, but not sure, and don't know how to fix it.
Let me know please if you know how to resolve it.
Thanks,
gb
За это сообщение автора поблагодарили: Kabardian (1).
Старый 19.08.2008, 11:53   #2  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
Are you sure that the users have write access to the temporary internet files folder?
Can you post here the exact code you use to output the picture in the report - maybe you missed something there?
Старый 19.08.2008, 13:49   #3  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
AOT/Resources
The control on the report has a display method as a source.
The display method looks like this:

public display FilePath stampResource()
{
ResourceNode resourceNode;
FilePath stampPath;
;

resourceNode = SysResource::getResourceNode(resourcestr(stamp));

if (resourceNode)
{
resourceNode.AOTload();
stampPath = SysResource::saveToTempFile(resourceNode);
}

return stampPath;
}


Also, the report works fine for all end-users except only two. That's why I think the code is correct.

Thank you,
gb
Старый 19.08.2008, 14:05   #4  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
Well, than the problem is, most probably, in the permissions to the temp folder.
Can you try outputing the temporary path to infolog on the machines that have problems and on those that don't:
X++:
info(SysResource::getTempPathName());
Then, on each of them, verify user rights to that directory in Windows. (ask your administrator to help, if required). They should (by default, actually), have write access to that directory - but maybe something got messed up...

Also, check if the code in SysResource class has been modified?
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axStart: Date methods in your Visual Studio Dynamics AX Report. Blog bot DAX Blogs 0 10.09.2008 23:05
Ruslan Goncharov: Storing report design in database Blog bot DAX Blogs 0 27.08.2008 18:05
palleagermark: Change the appearance of printed report ranges Blog bot DAX Blogs 1 27.05.2008 21:21
ImageListAppl, который работает с AOT/Resources EVGL DAX: База знаний и проекты 5 01.02.2006 00:12

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

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

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