I developed a report in iReport which includes an image. In the expression property for the image I inserted:
“CBC-Logo.jpg”
And this prints just fine in iReport. The image and report are located in the Program Files/Servoy/…/servoy_jasperreports directory.
However, when I try printing it from our Servoy solution, I get the following error message:
Byte data not found at location : CBC-Logo.jpg
at C:\Users\Steve\servoy_workspace\4.1.0_Lincage\forms\frm_rep_prt_rpts_main\frm_rep_prt_rpts_main_methods.js:17 (printReports)
Besides not printing correctly in Servoy, what interests me about this situation is that the error is reporting the Servoy workspace location of the calling form, not the Program Files location of the servoy_jasperreports directory where the report and image are located (and used by iReport).
I’ve tried copying the image to the directory mentioned in the error message, but that doesn’t help either.
Any ideas would be appreciated.
TIA, Steve