Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:27 AM
Jens S0nderby Munk
Guest
 
Posts: n/a
Default Problems with BinaryWrite, IE and Adobe Reader 6.0

Hi,

I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe Reader 6.0 installed then it just displays a blank page and the earth on the top rigth corner keeps turning like it haven't read the pdf-file (for 10+ minutes on a lan).


If I change the settings on the Adobe Reader 6.0 to not open in a browser, then it works fine.
If I use Mozilla 1.4 then it opens fine as well.
It works fine as well with Adobe Reader 5.1.

The code looks like this:
[Some code that places the pdf-file in a byte array called vntStream]
Response.Clear
Response.ContentType = "Application/pdf"
Response.BinaryWrite = vntStream
Response.end

I have tried to place a Response.Flush after the BinaryWrite, but it just makes the Adobe plug-in say something like "document corupted".

Can anyone help, please.

/Jens


  #2  
Old July 19th, 2005, 07:28 AM
Alan
Guest
 
Posts: n/a
Default Re: Problems with BinaryWrite, IE and Adobe Reader 6.0

Hi there,

Is this a typo:[color=blue]
> Response.BinaryWrite = vntStream[/color]

BinaryWrite is a function, not a property. Have you tried persisting the PDF
to disk and Response.Redirecting?

Cheers,

Alan

"Jens S0nderby Munk" <jsmunk@diku.dk> wrote in message
news:bgtgnn$c5$1@munin.diku.dk...[color=blue]
> Hi,
>
> I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe[/color]
Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe
Reader 6.0 installed then it just displays a blank page and the earth on the
top rigth corner keeps turning like it haven't read the pdf-file (for 10+
minutes on a lan).[color=blue]
>
>
> If I change the settings on the Adobe Reader 6.0 to not open in a browser,[/color]
then it works fine.[color=blue]
> If I use Mozilla 1.4 then it opens fine as well.
> It works fine as well with Adobe Reader 5.1.
>
> The code looks like this:
> [Some code that places the pdf-file in a byte array called vntStream]
> Response.Clear
> Response.ContentType = "Application/pdf"
> Response.BinaryWrite = vntStream
> Response.end
>
> I have tried to place a Response.Flush after the BinaryWrite, but it just[/color]
makes the Adobe plug-in say something like "document corupted".[color=blue]
>
> Can anyone help, please.
>
> /Jens
>
>[/color]


  #3  
Old July 19th, 2005, 07:29 AM
Jens S0nderby Munk
Guest
 
Posts: n/a
Default Re: Problems with BinaryWrite, IE and Adobe Reader 6.0

"Alan" <SPAMMENOTalan.howard@inspire.net.nz> writes:
[color=blue]
>Hi there,
>
>Is this a typo:[color=green]
>> Response.BinaryWrite = vntStream[/color][/color]
That is of course a typo
[color=blue]
>BinaryWrite is a function, not a property. Have you tried persisting the PDF
>to disk and Response.Redirecting?[/color]
Yes, I have tried that, and it works, but this is not a option as the PDF-fiels are not public accessable and the access control is done by the application. The conplexity of the access control does not allow me to place the files in a tree structure with access control.

/Jens
[color=blue][color=green]
>> Hi,
>>
>> I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe
>> Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe
>> Reader 6.0 installed then it just displays a blank page and the earth on the
>> top rigth corner keeps turning like it haven't read the pdf-file (for 10+
>> minutes on a lan).
>>
>>
>> If I change the settings on the Adobe Reader 6.0 to not open in a browser,
>> then it works fine.
>> If I use Mozilla 1.4 then it opens fine as well.
>> It works fine as well with Adobe Reader 5.1.
>>
>> The code looks like this:
>> [Some code that places the pdf-file in a byte array called vntStream]
>> Response.Clear
>> Response.ContentType = "Application/pdf"
>> Response.BinaryWrite = vntStream
>> Response.end
>>
>> I have tried to place a Response.Flush after the BinaryWrite, but it just
>> makes the Adobe plug-in say something like "document corupted".
>>
>> Can anyone help, please.
>>
>> /Jens
>>
>>[/color][/color]







 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles