Posted 5 December 2023, 10:14 pm EST
The following code used to work under ActiveReports 6, however under ActiveReports 17 the corresponding Picture control from the Report appears empty.
Our application code overrides SectionReport.FetchData like this:
report.FetchData += new FetchEventHandler(this.CutFlange_FetchData);
Then, in the method CutFlange_FetchData, we try to set the picture like this:
Bitmap flangeBitmap = BitmapsCache.getBitmap(flageCutName);
Field cutFlangePic = report.Fields["CutFlangePicture"];
cutFlangePic.Value = flangeBitmap;
flangeBitmap is a valid bitmap and cutFlangePic also appears to be valid.
Is this way of setting a picture still valid ?
If not how should I proceed ?