Re: PDF Documents

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

"John Timney (MVP)" <x_john@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:trCdnZw6Tu_mTpvYRVnytQ@xxxxxxxxxxxxxxxxx
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


--
Regards

John Timney (MVP)
http://www.johntimney.com



"Austin Phillips" <aphillips_at_aticousa_dot_com> wrote in message
news:%238ZSLun1GHA.3464@xxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: target="_blank"
    ... I've personally closed the browser window after following a PDF ... > Netscape, but it opens from within an IE window by default, ... ;-) Most MS Office documents ...
    (alt.html)
  • Re: Using BinaryWrite to output PDF to IE
    ... it seems that you open pdf file then write to browser. ... Dim PDFfileSize As Long ... 'Try and ensure the browser always opens the file and doesn't just ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Hyperlink in PDF should open in new browser
    ... I use Tracker's PDF-Viewer Pro and it opens a PDF download in the browser ... window and if the PDF file has a url address will open a second browser ...
    (comp.text.pdf)
  • Re: Response.WriteFile set page title
    ... It will also not be possible to send HTML and the PDF data to the browser at the same time. ... However, when a new window is opened and a pdf displayed, the window ... I.e. when a user click the link that opens a new window to write the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Controlling navigation with VB6 ActiveX exe
    ... What I'm trying to do is open a link to a PDF inside a calling ... then the file is displayed in the browser. ... wrapper sits nicely inside the browser window. ... Using a shellexecute api call just opens a new PDF window which is not ...
    (microsoft.public.vb.general.discussion)