06Feb
How to pass Images from Report Body to Header/Footer in RDLC
When using SetData and GetData functions to pass data from report body to report header/footer we can also pass the images.
For example: when creating a multiple document for different companies with different logos. Find the below code to achieve the scenario.
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.
Related
User Tasks is a one of the new feature added in Microsoft Dynamics NAV 2018.In this you can create t...
Read More >
Reports play a fundamental role when it comes to TESTING. Tester can now know the real-time r...
Read More >
IntroductionClosure is a collection of tools for building rich web applications in JavaScript.Google...
Read More >
What is CRM Today’s world is fast changing and full of challenges, which fundamenta...
Read More >
Please watch LIVE RECORDING Video of the webinar session below which took place on 28th Ja...
Read More >
Canarys has now achieved another Microsoft Gold Competency in “Collaboration and Content&rdquo...
Read More >
How to scale the application in Azure App Service. There are two workflows for scaling, scale up and...
Read More >
img{ display:block; } #outlook a{ padding:0; } body{ width:100% !importa...
Read More >
Streamline Software Development Using Microsoft ALMThe webinar covers the advantages of using the Mi...
Read More >
Share