Re: File Open and Save dialog poping up while opening PDF

Tech-Archive recommends: Fix windows errors by optimizing your registry



> I am trying to display a PDF file (which I am being passed from a web
> service as a binary stream) in a browser, but I am being prompted to
> save the file instead. I don't want the user to be prompted; I just
> want the PDF to be displayed.

Try adding before Response.BinaryWrite(...) the line

Response.AddHeader("Content-Disposition", "inline");

to tell the browser to show the document inline. Note however that the
problem *could* actually be on the client side, as Adobe Reader
sometimes refuses to show a PDF inline, even when the
content-disposition is set to 'inline'.

.



Relevant Pages

  • Re: pdf in java Viewing... Not a good experience
    ... > BUT I need to know the external pdf viewers name ... This code is austensibly to open a url in a browser, but on Windows it will ... static class to display a URL in the system browser. ...
    (comp.lang.java.gui)
  • Re: EU nations refuse to force members to farm GM maize
    ... the Spiegel logo is on the Business Week page. ... Since there are security flaws in PDF files, allowing them to be opened to ... they don't display consistently across browsers. ... doesn't have a plug-in to show the PDFs in the browser but that's just ...
    (misc.rural)
  • Display / Download file
    ... use a showDoc.php file to display the file. ... want this to be in the browser. ... xls - when the link is clicked, I get an excel warning that the file ... pdf, dwf, dwg and dxf all do what I want. ...
    (alt.php)
  • Re: PDFs
    ... To display a PDF file within Access: ... You can only do it on a form; reports do not support display of PDF ... Rather than embed or link an OLE object, add the Adobe Acrobat Control ...
    (microsoft.public.access.reports)
  • Re: [opensuse] Changing users temp folder
    ... When you click on a pdf file or any ... other file type the browser knows how to handle, ... it offers to open or download it. ...
    (SuSE)