I have a Win application developed in Genexus X Ev2 U2 generating in java and I have a report in PDF in which I have to include an image in PrintBlock
inside of the proc object, the problem is that it is not showing me the image.
The following error appears in the Runtime log:
"C: \ ProgramData \ Genexus Web Start \ NAME_APPLICATION \ Resources \ logo.jpg (The system can not find the specified route) "
This means that the application is going to look for the image to that specific route and not within the generated .jar. The image is showing correctly whether I add it in form
or if I try to visualize it with the report viewer of Genexus (removing the rule output_file(...)
) so I suspect it is a problem specific with the PDF.
Additional information:
- In the rules I put "
Output_file('Reporte',"PDF");
". - The image is about a genexus object (not a blob brought from BD, with a blob if it works).
- Property Report output is in "Only To Screen".
- I have the iText.jar included in the classpath.
- The Base Image Path property is empty because I read in the GX documentation that in X Ev2 it is no longer necessary since the images are treated as objects of the KB. Also try to put a location for the doubts and the problem persists.
Of course, thank you very much!