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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft 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
ValentinoVBI 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.