Skip to Content
Former Member
Apr 23, 2009 at 01:03 PM

Hyperlink to a file



I'm using Crystal reports 2008 version, And visual studio 2005.

I've created a website (.aspx) that contains a report, the report itself I've prepared in Crystal reports.

In the DB in the main table, I have a field - PATH, which is a path to a file on my computer or on a server

(for example "c:\temp\test.txt")

Using "Format Field..." I've made this field a Hyperlink to a file.

When I'm using Crystal reports and in the preview I click on the path the file opens,

but when I run the project on localhost or on a server and I click on the path nothing happens,

if I do a right mouse click and choose "Save Target As..." I can save the file to my folders and then I can open it.

How could I open the file in the website the same way as in Crystal reports, with a click?