Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
Hi,

I want to show image on report on rdlc which stored in access database in binary format.

How can i show the image on report of rdlc?

What I have tried:

=System.Convert.FromBase64String(Mid(System.Convert.ToBase64String(First(Fields!PhotoOfPart.Value, "DataSet2")), 105))
Posted
Updated 16-Dec-19 2:27am
Comments
Richard MacCutchan 15-Dec-19 9:14am    
OK, and what is your question?
Member 14690091 15-Dec-19 9:31am    
It is not working.
First i have seen an image with a red x
and now after changing the code, i am see a white image.
I don't know what is the problem.
I am sorry for my low English.
dnxit 16-Dec-19 1:44am    
https://www.c-sharpcorner.com/UploadFile/a20beb/get-the-image-in-reports-from-the-database-in-net/

Check this article.
Member 14690091 16-Dec-19 5:43am    
It's not help me.
I need show image on report on rdlc which stored in access database in binary format
ZurdoDev 16-Dec-19 8:11am    
There are tons of examples online. Here is the first google result for me, https://www.mssqltips.com/sqlservertip/2978/rendering-images-from-a-database-on-ssrs-reports/

1 solution

You didn't explain what your problem is... Nevertheless...
Follow this: Display Image in RDLC Report (Microsoft Report Viewer)[^]

The main difference is that, that you have to use OleDbConnection[^], OleDbCommand[^] and OleDbAdapter[^] instead of SqlConnection, SqlCommand, SqlDataAdapter.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900