Put Image in ReportPicture programmatically?

I want to set the image in a ReportPicture like this:

ArticleReport.Picture1.Image = MainWindow.ImageWell1.Image
or
ArticleReport.Picture1.Image = mLogo

but this does not seem to work.

Is there uberhaupt a possibility to set the ReportPicture.Image programmatically?

You should check the ReportPicture.BeforePrinting-Event.
https://documentation.xojo.com/BeforePrinting_event

I tried this in BeforePrinting, but it does not work.

Problem solved.
I did put the event in the wrong place.
Thank you Martin.