I list records between two related tables with microsoft.reportviwer. Many records come from the database to 1, but I cannot bring the images. On the side where there are many, the path of the image is kept in a field, and there is also an image folder, this path shows that place. pictures are not coming
Loading

Jayraj ChhayaPosted Apr 1, 2024, 12:13 PM
To resolve the issue of images not displaying in Microsoft ReportViewer, ensure that the image paths stored in the database are correctly mapped to the image control in the report. Check that the image paths are accessible and correctly formatted. Additionally, verify that the image folder location is accessible from the report viewer's context.
You can use expressions in the image control properties to dynamically set the image path based on the database field value. Make sure the image path is relative to the report or provide the full URL if necessary.
By verifying the image paths, ensuring accessibility, and correctly setting the image control properties, you should be able to display images successfully in Microsoft ReportViewer.
Omer AynaPosted Apr 1, 2024, 11:29 AM
Naimish MakwanaPosted Apr 1, 2024, 4:25 AM
It seems like you’re trying to display images from a database in your ReportViewer control. Here are some steps you can follow:
Ensure that the image data is correctly stored in your database. The data type for storing the image should be
System.Byte[]1.In your RDLC report, set the image property source to ‘Database’ and the value to the dataset field that contains the byte array of the image1.
In your code-behind file, you need to enable external images and refresh the report viewer after setting the data source1. Here’s an example:
Please replace the placeholders with your actual data. If you continue to have issues, please provide more details about your implementation and I’ll be glad to help further.
Thanks