Link to open PDF file from SSRS Report

Hi Experts,

I need to create a link on  SSRS report and when clicked opens a separate PDF/docx file.These PDF/docx files already exist and are generated by third party tool using C# in Silverlight application and we are inserting  these docx/pdf files into sql server database table.

Fields for the doc table

ID                                      int
NAME1                              varchar(50)
NAME2                              varchar(50)
NAME3                              varchar(50)
Report Type                       varchar(50)
Report Doc                        varbinary(max)

Please let me know the steps involved from SSRS perspective and How can I generate document (doc/pdf ) back from binary data ?

Thanks in advance
Who is Participating?
ValentinoVConnect With a Mentor BI ConsultantCommented:
Hi Jim,

Your answer makes sense in a situation where the file is stored on the file system somewhere.  But in this case I think you missed the part where ksd123 mentions that the doc content is stored in the table - varbinary(max)...

ksd123: unfortunately this functionality is not available out-of-the-box.  Any chance for you to change your current document generation process a bit?  If you could save the document to the file system and store the path to it in the table, then you'd be able to use Jim's approach.

If not, then you'd probably have to look into a method to generate files from the varbinary through a custom application.  Or, another approach could be to convert the document to image and store that in a new varbinary field which can then be used in the Image control on a report.  Again through custom code...  This method is explained here in more detail: Reporting Services 2008 – Embedding a PDF Document
Jim HornConnect With a Mentor Microsoft SQL Server Developer, Architect, and AuthorCommented:
<in SSRS 2008 R2>

Click on a textbox
Right-click:Text Box Properties
In the left list box choose Action
In the right side radio buttons select Go to URL
In the Select URL textbox either hard-code a URL, or if it is a field that's being returned in a data set go into the expression editor and type =Fields!ThatFieldName.Value
ksd123Author Commented:
Thank you ValentinoV for your valuable suggestion and we are planning to change document generation process.
ValentinoVBI ConsultantCommented:
Glad to have been of help, good luck with the project!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.