Add Hyperlink to RDLC Report in ASP.Net

Last Reply on Aug 31, 2017 01:01 AM By dharmendr

Posted on Aug 24, 2017 04:34 AM

Dear All, 

 

 i Have a query .

 

In My Projects i would like to Insert Employee Data into RDLC Report.

 

and It is successfull.

now the Think is I would to insert Attachement with Data  into RDLC Report.

 

How can i do?

 

Please help me or send me Code.

 

Regards,

Sandip Patil 

 

Posted on Aug 24, 2017 08:06 AM Modified on on Aug 24, 2017 10:58 AM

If you go to the report and click on the cell, choose "TextBox" Properties. There is an "Action" option where you can specify an hyperlink with an expression. Refer below link.

https://weblogs.asp.net/rajbk/Contents/Item/Display/87

By refering the below article i have created the sample. Based on the Contact name you need to do the task what you want ie download or display document based on the querystring value.

How to create RDLC report step by step in ASP.Net using C# and VB.Net

The report will not render because hyperlinks are disabled by default in the ReportViewer control. To enable it, add the following in your page load even.

ReportViewer1.LocalReport.EnableHyperlinks = true;

Screenshot