Monday, February 22, 2010

Image Resource can not be saved in temporary folder

We recently added a custom image to a report.  To do this, we added a resource (AOT, Resources node) and put the following code in the executeSection method:
MyReportBitmapControl.imageName(SysResource::getImagePath("MyResourceName"));
This worked find until we ran the report from a Menu Item.  Then we started to get an error that said "unable to save the data to c:\...\Temporary Internet Files\myResource.bmp".

The issue ended up being that the Menu Item was set to Run On: Server.  When the Menu Item was set to Run On: Client, the problem was fixed.

No comments:

Post a Comment