Re: Downloading fails (pdf) on OPEN button, not via save as...

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



Common fellas!

I'm looking but i can't find it.
I have the idea this is a forms authenticate issue.
I have the feeling MSIE does not get a authenticate during this download and
removes the file right away.

Really need some help.



"Edwin Knoppert" <news@xxxxxxxxxxxxxx> schreef in bericht
news:432fdd23$0$16947$ba620dc5@xxxxxxxxxxxxxxxxxxxxxx
>
> I have a problem with downloading a PDF by using the response object.
>
> A part of it:
> .Response.Clear()
> .Response.ContentType = sFileType
> .Response.AppendHeader("Content-Disposition", "attachment; filename=" &
> sFileNameOut)
> .Response.AppendHeader("Content-Length", fs.Length.ToString)
> .Response.AppendHeader("Content-Transfer-Encoding", "BINARY")
> .Response.Flush()
>
> And a binary data loop.
> This does work fine for several purposes but for this PDF it seems to fail
> but ONLY when using the OPEN button.
> When i choose for save as and open it then it shows fine.
> I traced the log using a filemon tool and it seems IE clears the cache and
> removes the file before the Adobe reader can open it.
>
> It's odd, my simple test app using the same code runs fine.
>
> I can't find the problem, the PDF is downloaded fine, before i choose OPEN
> i
> located the file in the IE download folder and tried to open it, it shows
> fine.
>
> ???
>
>
>


.



Relevant Pages

  • Re: Downloading fails (pdf) on OPEN button, not via save as...
    ... > I have the idea this is a forms authenticate issue. ... >> I have a problem with downloading a PDF by using the response object. ... >> located the file in the IE download folder and tried to open it, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Downloading fails (pdf) on OPEN button, not via save as...
    ... "Edwin Knoppert" wrote: ... >> I have the idea this is a forms authenticate issue. ... >>> I have a problem with downloading a PDF by using the response object. ... >>> located the file in the IE download folder and tried to open it, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Potters favorite computer programs.
    ... > They can be download from the Internet and most are free. ... > 5D PDF - Creates PDF files via the print command. ... > Microsoft PhotoStory - use to make pictures into DVDs and videos. ... > CDBank - reads in and catalogs the directories of your disk drives, ...
    (sci.physics)
  • Re: Can doc and pdf files be treated this way?
    ... Downloading the .html document from the site, editing it locally and then ... but I don't know about the PDF ones. ... >> I've begun to design a Web page that will allow users to either download ...
    (microsoft.public.frontpage)
  • Re: TeX/LaTeX isnt easy
    ... By that logic, all links to PDF files are "marked", since ... documentation inadequate to decide whether to go ahead and download ... Sumatra PDF, any web browser with a PDF plug-in, and plenty of others. ... We were discussing Acrobat Reader, ...
    (comp.text.tex)