Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

how to set images dynamically in rdlc Report Viewer with datasourse as database.
And is it possible to add as a report parameter.Then what is the MIME Type i have to set?

Regards,
ParvathySunu
Posted

Finally I got the answer.
Created a property that return byte array for ex:
C#
public byte[] setImage()
{
get;set;
}

Then set the Image Value and MIME TYPE as Fields!setImages.Value
And set the datasource as Database.
Its working...........
 
Share this answer
 
v2
Comments
Ashishmau 24-May-11 8:25am    
gr8
Jigar Sangoi 21-Sep-14 13:55pm    
Thanks Worked for me too... :)
im getting the foll. error - Requested value '=Fields!setImage.Value' not found.

how to set te image in code-behind?
 
Share this answer
 
im getting the foll. error - Requested value '=Fields!setImage.Value' not found.

how will the report access the property?
 
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