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

Extent Reports in Selenium CSharp (C#)

Reports play a fundamental role when it comes to TESTING. Tester can now  know the real-time r...

Read More >

How to use TFS 2012 Team Build for Visual Basic 6

Here is a process to build your VB6 projects in Team foundation Server 2012. 1. Have a copy of ...

Read More >

New Tools in NAV 2013 (the less talked about ones) - Part 1

For some time now, I have been thinking about compiling on a list of new features and subtle tools i...

Read More >

New Tools in NAV 2013 (the less talked about ones) - Concluding Part

This part (as I said in my previous blog), will contain some more new tools and features focusing on...

Read More >

Service Broker

Service Broker SQL Server Service broker provides asynchronous queuing functionality to SQL Ser...

Read More >

It is Raining Gold. Time for the Celebrations.

Canarys has now achieved another Microsoft Gold Competency in “Collaboration and Content&rdquo...

Read More >

What is Defect? Defect Life Cycle in Software Testing.

Defect is an unexpected behavior of the software application flow against the requirement specificat...

Read More >

Microsoft Dynamics NAV 2013 R2 Chart Generator

In general chart means visual display of information, this is one such feature that is introduced in...

Read More >

TFS Build for .Net 2.0 Projects

Clients have strange requirements. The other day I had been to a client for a discussion. These guys...

Read More >

Software Services

The whole world has come to realize the role played by Information Technology and looking at ways to...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *