PDF Documents

A

Austin Phillips

Hello;

I am *very* new to website programming.

Coming from a client/server background, I am having some difficulties.

I know this is not asp.net related, but I figured someone would be able to
help me with this as I am tearing all of my hair out!

I am simply trying to load a PDF document into a web browser.

I am using the following code:

<% Response.AppendHeader("Content-Disposition",
"attachment;filename=C005FA05087FHQ.pdf")
Response.ContentType = "application/pdf"
Response.WriteFile("C:\Inetpub\wwwroot\eglobal\PDF\C005FA05087FHQ.pdf")
Response.End()%>

I can *somewhat* achieve what I want...but the above code does not open pdf
in the current webbrowswer....instead it opens the document in Adobe
reader....in a seperate window.

Can anyone help me? I would appreciate it.

I posted this in the general newsgroup, but noone answered.

Thanks,
Austin
 
A

Austin Phillips

Hey John;

If I open a web browser...click Open, browse, navigate to the PDF file
manually, then open, the document is displayed within the browser.

However, when I programmatically try it, I get the download option.

I don't want the download option. I want to view the document in the browser
with the plug in.

Thanks for any help,
Austin

Your browser probably needs to be set to act the way you want it.

Take a read of this from Adobe whihc should help you
http://www.adobe.com/support/techdocs/315029.html
 
D

darrel

I don't want the download option. I want to view the document in the
browser with the plug in.

Why are you writing the file to screen? Why not just have a regular link to
the PDF file?

_Darrel
 
A

Austin Phillips

Please excuse my knowledge as I am *very* new to web development.

I come from a client/server background. I am using the Sybase Web Datawindow
on a aspx page. So I cannot use a regular hyperlink. :(
In the webdatawindow when I click on a certain row, I open another aspx
page, passing my document name.

I tried to do a 'document.open("document name")' call, but I could not get
it to work properly.

So, I found my little code snippet on a google search and this is about as
close I as can get it.

Thanks,
Austin
 
A

Austin Phillips

Problem Solved:

I used the link property of the column of the web datawindow.

Thanks,
Austin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top