X
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 to AngularJS

                         In this bl...

Read More >

Introduction to Amazon S3 (Simple Storage Service) and EC2 (Elastic Cloud Computing) in Asp.Net

S3 is an Internet storage engine which has to be designed to make job easier for developers.Develope...

Read More >

Exclusive CxO Roundtable at C-SOaP addresses

img{ display:block; } #outlook a{ padding:0; } body{ width:100% !important; } body{ ma...

Read More >

Bugzilla to TFS Migrator (Part 2 of 4) – Installation

This is the second part of the Bugzilla to TFS Migrator blog series covering the installation of the...

Read More >

Unit testing in .NET

Unit Testing – ExplainedA process which involves writing code to verify a system at a lower an...

Read More >

Partnership Program

We understand that the world of technology is changing rapidly from day to day and businesses have m...

Read More >

SVG Image and advantage

          "SVG images one of the best way to do full resolution graphi...

Read More >

Azure Function : A quick start with database

This blog intended to see how Azure Functions can be used with database.Azure Function is a solution...

Read More >

Migration Process of SVN to Git

Subversion (SVN) is a central version control system (VCS) while Git is a distributed version contro...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
  • The Ansible Architecture

    Ansible is an open source, IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. In thi...
  • Subversion (Centralized Version Control System)

    Version control system is a repository of files, often the files for the source code of computer programs with monitored access. They are essential for any form of distributed, collaborative developme...
  • Volume management in Kubernetes

    Since pods created in k8s are ephemeral, we are able to get the data as long as pods are alive, but if pods are terminated data stored in it completely lost and it cannot be get back, for that we need...
  • LDAP Integration with Sonatype Nexus

    Sonatype Nexus supports the Repository Manager integration with various active directory systems for authentication, such as Microsoft Exchange / Active Directory, OpenLDAP, ApacheDS, and others. In o...
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *