Completed
Last Updated: 15 Nov 2023 16:49 by ADMIN
Release 2024 R1 PI1
Anton
Created on: 27 Oct 2023 14:32
Type: Bug Report
1
Setting the Value of a PictureBox to an invalid type throws a misleading exception

The following exception can be thrown when setting the Value of a PictureBox to an invalid type:

System.ArgumentException: You can assign System.String, IImage, System.Drawing.Image or SkiaImage objects only.
at Telerik.Reporting.PictureBox.set_Value(Object value) 

This is misleading because an object of type System.Drawing.Image is not supported when using the Skia graphics engine. Passing an SKImage does not work either due to an error in the processing stage.

If you need to use a System.Drawing.Image object or an SKBitmap instance, you can take advantage of the DrawingFactory class.

0 comments