I have a datawindow that has a background image that we are using to print a report on top of. The image is sitting on a picture object.
For some reason, this image has a background of Fuchsia (or Magenta) in the image.
If I view the jpeg in just the picture viewer, everything looks fine.
Is there something that might be happening with themes? We haven't gone into that area, but there is zero background color set that is Fuchsia.
This is PowerBuilder 2022 R3 Build 3289. So we're not on the latest and greatest. But this just seemed to pop up out of nowhere.
Due to the fact that I can't display this entire report due to security concerns, I will show the top of the datawindow and the top of just the jpeg image.
And for the record. Nothing going on within expressions either. And there is no alpha color in a jpeg, so nothing happening there.
Any thoughts would be greatly appreciated. Before I go to the latest and greatest version, I wanted to at least get some ideas from the masses here.
Thanks.
-- "This just seemed to pop up out of nowhere" - At what point? When the image was added? When the DW was modified?
This app has been live for over 25 years. It was in PB8 when we got our hands on it. When I preview the datawindow (just in the IDE, not at runtime), it previews just fine in PB8. When I open it in the PowerBuilder 2022 R3 IDE, now we see the JPEG with the Fuchsia color Heck, for all I know they just printed this report after we did the migration over 2 years ago. When it's printed it shows a colored image on the report at runtime.
-- Are you placing the picture control in the background layer?
The JPEG is not in the background layer. It's in a picture control placed in the detail band.
-- How was the jpeg image produced (what software)? Does a different image produced with the same software also exhibit this problem when used in the DataWindow?
I honestly have no idea how they created the JPEG. It could have been a scan they did of a pre-printed form that has just that are placed over the image.
-- If you remove the picture control and make no other changes to the DataWindow, does the DataWindow render correctly? If so, that would lead me to believe there is some kind of issue with the jpeg.
Yes, the datawindow populates with the picture there, or with the picture not being there.
-- I would try using the Windows Paint utility (not Paint3D) to open a copy of the jpeg image and use Save As to save it in .png format and try that in the DataWindow. If that works, but you still need to use the image in jpeg format, edit the .png in Paint and Save As in jpeg format, then try that jpeg in place of the original image.
We don't need to use a JPEG. It's a smattering of all sorts of different image types all over the app. I actually just tied what you mentioned. I converted the file from JPEG to PNG using Windows Paint (not 3D). That cleaned up the image. I will try and see if converting it back to a JPEG from the PNG removes the Fuchsia color.
I appreciate you understanding the sensitive nature of the datawindow. I will push it up to the Appeon team if they decide they want to look deeper into this issue.