Logo not showing

Hi i created a report in ax 2009. This report has a logo on it, when running this report in the server the logo shows but if the report was called via workstation the logo will not show.

I created resources for the logo.

i use this code to show the logo in the report

FilePath getEnkeiTUV()

{

#AOT

ResourceNode resourceNode;

FilePath filePathLogo;

;

breakpoint;

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

if (resourceNode)

{

resourceNode.AOTload();

filePathLogo = SysResource::saveToTempFile(resourceNode);

}

else

{

throw Error(strfmt(‘Resource Not Found’));

}

return filePathLogo;

}


//BP Deviation Documented
display FilePath showEnkeiTUV()
{
;

return element.getEnkeiTUV();
}

Please help me if you know how to fix this problem.

In my report I simply use a return method which displays an image;

//BP Deviation documented
display Bitmap companyLogo()
{
return FormLetter::companyLogo();
}

All you need to is drag and drop this method onto the report section you create it in, this creates an image field on the report.

This is standard AX and will return the specified logo setup on the system.

If you want to keep your own code though, just ensure the workstation has rights to the image in the location you have stored it in. Not sure what else is would be.

Thanks, I will check the workstation if it has the rights to view the image. :slight_smile: