newbie

  • Thread starter Thread starter Austin Phillips
  • Start date Start date
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.

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

I am using the following code: document.open("C:....\filename.pdf")

When the browser opens, all I see is the actual "document.open(" line.

Can anyone help me?

Thanks,
Austin
 
However:

I can open IE, File>Open>browse to location and open.

This works fine.

but i would like to this programmatically :)

Thanks,
Austin
 
Update:

Using the below code snippet:
Austin Phillips said:
However:

I can open IE, File>Open>browse to location and open.

This works fine.

but i would like to this programmatically :)

Thanks,
Austin
 
Update:

Using the below code snippet:

<% 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 a webbrowswer....

it opens the document in Adobe reader....

Any ideas?

Thanks,
Austin
 
Update:

Using the below code snippet:

<% 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 a webbrowswer....

it opens the document in Adobe reader....

Any ideas?

Thanks,
Austin
 
Update:

Using the below code snippet:

<% 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 a webbrowswer....

it opens the document in Adobe reader....

Any ideas?

Thanks,
Austin
 
Problem Solved;

Used the link property of a column in a web datawindow.

Thanks,
Austin
 
Back
Top