Error 12
Line: 11
Message =Variable 'Z_LOGO' is not found.
This error occurred when there was a standard logo field inside a layout that used ‘Expression or variable name’ as the Control Source Type but there is was no reference to that control source variable inside the report.
To add the z_logo as a variable:
Right click on a blank section of the report and select Variables…
Select Add and enter z_logo as a variable name
Select the 3 dots next to the ‘Value to store" field and copy and paste the below expression:
IIF(!EMPTY(infdata.cologo),IIF(FILE('images\'+ALLTRIM(infdata.cologo)),'images\'+ALLTRIM(infdata.cologo),'images\empty.gif'),iif(file('images\logo.gif'),'images\logo.gif','images\empty.gif'))
Select the 3 dots next to ‘Initial Value’ field and copy and paste the below expression:
IIF(!EMPTY(infdata.cologo),IIF(FILE('images\'+ALLTRIM(infdata.cologo)),'images\'+ALLTRIM(infdata.cologo),'images\empty.gif'),iif(file('images\logo.gif'),'images\logo.gif','images\empty.gif'))
It should look like this:
Select ok, then save. Preview the layout.
Comments
0 comments
Please sign in to leave a comment.