Posted 28 August 2025, 5:56 pm EST
Hello,
I’m using C1FlexReport 4.6.2 and C1.Report 4.6.2 in Version 2025_1 since today.
With Version 2024_2 this code works:
((C1.Win.FlexReport.Field)flex_bericht.Fields["feld_foto"]).Picture = new Bitmap(foto);
Today with the new versions mentioned above, I get this error:
“Das Objekt des Typs “C1.Report.ImageField” kann nicht in Typ “C1.Win.FlexReport.Field” umgewandelt werden.”
→ “The object of type ‘C1.Report.ImageField’ cannot be converted to type ‘C1.Win.FlexReport.Field’.”
I tried this:
((C1.Report.ImageField)flex_bericht.Fields["feld_foto"]).Picture = new Bitmap(foto);
Now we have this error:
“Invalid parameter for PictureHolder constructor.” Source:C1.Report.4.6.2
This is the same error like in the first message of this thread!
But I can’t use the solution because I’m on .Net Framework 4.6.2, not Net8 and have no GrapeCity.Documents.Drawing namespace available.
Help would be very welcome!
Michael