This is a migrated thread and some comments may be shown as answers.

PictureBox on reporting table

3 Answers 749 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 01 Oct 2020, 10:40 PM

Hello telerik team,

Can you help me with this, I need a reporting table to display (and group by name) some images, these images comes from my D.B and they are base64 strings, so I convert them to Image like this: Base64ToImage(myDBstring), this part works fine, but when i run it on my chsarp .net web project, the telerik reporting show me this error: 

An error as occurred while proccesing PictureBox 'picture1' Could not find part of the path C:\Myproyect\MyWebSite\System.Drawing.Bitmap.

 

See attached image (left is a single image box and right is the table with the error)

Note 1: I already did this with a single picture box succesfully, but now i need it in a table with two columns, Name and Image.

Note 2: I Dont use paths, i use D.B base64 images and merge them with a Dataset.

 

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 06 Oct 2020, 09:48 AM

Hello Diego,

Based on the screenshot, the image loads if it's placed in the report directly. However, inside a table, it does not. 

My assumption is that the PictureBox inside the table is not data-bound. You may place the PictureBox in a List item and assign your database as a DataSource for the List. Then you will be able to use =Fields.MyPictureField in the PictureBox inside the List.

Best Regards,
Silviya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Diego
Top achievements
Rank 1
answered on 08 Oct 2020, 05:39 PM
Thanks Silviya, I'm going to apply your approach with a list instead of a table. Best regards
0
Silviya
Telerik team
answered on 09 Oct 2020, 07:01 AM

Hello Diego,

I think you misunderstood my suggestion. I suggested putting a list item inside the table cell that is going to be used for the images. Not to use it instead of the table.

Try this approach and let me know how it goes.

Best Regards,
Silviya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Diego
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Diego
Top achievements
Rank 1
Share this question
or