Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display PDF from database link

Status
Not open for further replies.

Webflex

Technical User
Apr 20, 2001
101
0
0
GB
Hi

The code line below is used to display an image referenced in a database field, I would like to open a pdf document instead that is referenced by a database field called dwglink.

Code:
response.Write &quot;<img Src=&quot; & &quot;&quot;&quot;&quot; & dwglink & &quot;&quot;&quot;&quot; & &quot;></img></tr></td>&quot;

Any tips on how to do this?

TIA
Webflex
 
Thanks, is there an easy way to make the link fire on page load?
 
What exactly are you trying to do, surely then need to click a link or something to get the file in the first place.
You can just embed the file
<EMBED src=&quot;example1.pdf&quot; href=&quot;example1.pdf&quot; width=&quot;450&quot; height=&quot;450&quot;></EMBED>



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top