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

How Microsoft Dynamics CRM workflow definitions are stored in the SQL Database

Microsoft Dynamics CRM, is one of the prominent offerings from the Microsoft Dynamics family of ERP ...

Read More >

Pivoting and Unpivoting Data In SQL Server 2008

In this blog, I would like to explain about PIVOT and UNPIVOT operator in SQL Server. The PIVOT oper...

Read More >

Using XMPP and Openfire server in ASP.NET C# - Part -2

Roster in XMPPRoster are the contacts of  user (contact list). Roster Handlers in AgsXmppL...

Read More >

Why automation testing is required and its advantages over manual testing process

What is Automation Testing?Making the manual testing process as an automatic is called Automating Te...

Read More >

Mobile Operating Systems And Cross Platforms

Current Popular mobile operating systems are:Android from Google Inc.(Open source)initial release :2...

Read More >

Techno Feast 2014

Building enterprise apps with smart tools and solution...

Read More >

What’s New On Microsoft Dynamics NAV 2018

As most of us know that Microsoft NAV 2018 has released a great feature about API in 2018, to suppor...

Read More >

Object Identification and Object Repositories in QTP

Object IdentificationQTP performs the operation only after identifying the object uniquely. In order...

Read More >

How to download YouTube Videos using .NET

Are you interested in downloading YouTube Videos?Want to download YouTube Videos in device specific ...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *