Dynamically Changing Images In RDLC Report
When creating a multiple document for different companies with different images, we are supposed to pass images based on the companies. Generally, to pass data from report body to report header/footer we use SetData and GetData functions. Similarly, we can also pass images by implementing the below mentioned code.
1.Create the following function in Report Properties:
Public Function ConvertPicture(Value)
If IsNothing(Value) Then
Return “”
End If
Return Cstr(Convert.ToBase64String(Value))
End Function
2.In SetData add the newly created Function with the Field reference to BLOB Field
Code.ConvertPicture(Fields!CheckSignatureTCheckSignature.Value) + Chr(177)
3. Use GetData in Image Properties to reference to the respective Field of the SetData Function.
For more details kindly visit our LinkedIn page:
https://www.linkedin.com/company/allgrow-technologies-pvt-ltd/mycompany/
or you can write us on contact@allgrowtech.com
DO YOU WANT TO TURN YOUR IDEA INTO REALITY
Services we offer
Consulting Services
Software and Web Development
Development
Frontend
Backend
DevOps
SAAS
Locate us at
Karnataka
My Office Space, No 22/B, 2nd Floor,
BM Habitat Mall, Gokulam Main Road,
Jalakashmipuram, Mysore-570012,
Karnataka, India.
+91 9538770892
Uttar Pradesh
4th Floor, Bhavya Corporate Tower,
Vibhuti Khand, Gomti Nagar, Lucknow,
Uttar Pradesh 226010
+91 726-804-5173
Get in Touch
+1 646-432-0784
+91 9538770892
For Business – contact@allgrowtech.com
For Career – hr@allgrowtech.com
ALLGROW TECHNOLOGIES
We are here to provide quality technical solutions that perfectly align with your business requirements.