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

dyn1

 

2.In SetData add the newly created Function with the Field reference to BLOB Field

Code.ConvertPicture(Fields!CheckSignatureTCheckSignature.Value) + Chr(177)

dyn2

3. Use GetData in Image Properties to reference to the respective Field of the SetData Function.

 

Related

Introduction on SignalR

Introduction on SignalRReal–Time Web ApplicationThe real-time web is a set of technologies tha...

Read More >

ViewData and ViewBag in MVC

ASP.NET MVC provides us two options ViewData and ViewBag for passing data from controller to view.Vi...

Read More >

How To Unlock/Reset Your Android Password Pattern Lock Without Internet Connection

   This tutorial will show you how to unlock and reset your android device lock pattern if...

Read More >

Mobile Apps

There are mobile applications and then there are Applications done by Canarys. Smart phones and tabl...

Read More >

Wireless Ad-Hoc distribution for iOS apps

Creating Ad-Hoc is an important part of iOS app development because it helps us in testing the app d...

Read More >

Webinar-subscribe

Subscribe using the form below to get updates on our future webinars!!! We will ensure you to send u...

Read More >

Creating an RDLC report in Asp.Net

Step 1.  Create a new website and Add DataSet to the WebsiteRight Click on the project, Add new...

Read More >

Customer Feedback

Your feedback is important to us. Please share your experience working with Canarys & the journe...

Read More >

Avoid These 14 Subject Line To Get A Prospect

A blog which highlights on email subject line that most people after reading gives up from opening t...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *