Re: Downloading file from database

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Oh, i meant it the other way around, by NOT using the real type like pdf but
that inary, you get the download fialog.
But now i see you don't want that.
You might consider to open an new window and point to the pdf.
But i don't think you'll be able to determine if the pdf get's loaded IN the
window or not.

So, leave it to the user..



"Jeremy Chapman" <me@xxxxxxxx> schreef in bericht
news:%23oL8xQU8FHA.2816@xxxxxxxxxxxxxxxxxxxxxxx
> The type is correct. But for some types windows displays them using IE,
> and in that case it displays it in the same window as the list of files.
> If it's in IE, I want it to display in a seperate window.
>
>
> "Edwin Knoppert" <info@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:dm5bfs$ok1$1@xxxxxxxxxxxxxxxxxx
>> Just the correct content type.
>> I enforce downloading PDF instead of viewing it this way.
>>
>>
>> "Jeremy Chapman" <me@xxxxxxxx> schreef in bericht
>> news:%23qdT31T8FHA.3804@xxxxxxxxxxxxxxxxxxxxxxx
>>>I have build a web page that lists files in a database. When the user
>>>clicks on the file the page streams the file contents to the browser with
>>>code like:
>>> Response.AppendHeader("Content-Disposition","attachment;filename=" +
>>> strFileName);
>>> Response.AppendHeader("Content-Length",lLength.ToString());
>>> Response.ContentType = strContentType;
>>> Response.BinaryWrite(binData);
>>>
>>> My problem is that if the file is html or xml, it appears in the browser
>>> window. If the file is jpg, text, etc it appears in a seperate
>>> application window. The desired behaviour is to always show the
>>> document in a seperate window, but I can't write specific code to handle
>>> each file type individually. Is it possible to force the file to
>>> download a view in a seperate window?
>>>
>>
>>
>
>


.



Relevant Pages

  • RiScript 5.02 - wont close either files or windows.
    ... It loaded a trial PDF fine, and I opened the Choices ... I ticked 'Automatically close file when closing window' and Saved, ... RiScript thereafter only showed an empty window, ... error in the download. ...
    (comp.sys.acorn.apps)
  • disappearing downloads with vista & ie7
    ... He said that sometime around June 13-ish he started having problems when he tried to download mp3 and pdf files. ... The problem now is that when he clicks on an mp3 or doc file when on the net with internet explorer 7 the download disappears. ... I removed the check in the "close window when complete". ...
    (microsoft.public.windows.vista.general)
  • Re: bat file download
    ... program to unzip the files. ... >>I am trying to add 3 bat files to my website and be able to download them. ... >>a pdf and it will open in the window but I just want the file download box ...
    (microsoft.public.frontpage.programming)
  • Force download Part 2
    ... I'm trying to add anchors in code and I need the link to force a download of ... the .pdf rather than open a new window or worse, ... current client browser window. ... Here is my very normal anchor code: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Saving an Internet Explorer STATIC Web Page
    ... CutePDF is also free and works well as a printer (to a PDF ... |>> What good is saving something if it isn't saved (in ... |>> because the page may be several screens long. ...
    (microsoft.public.windowsxp.basics)