For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > March 2006 > Prob with Adobe 7.07 reader









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Prob with Adobe 7.07 reader
GaryDean

2006-03-31, 10:02 pm

( First, I'm using .net 1.1 and, yes, I posted this problem on the
Adobe Forums but that won't do any good because they have very poor support)

In the code pasted below, MyReport is a Crystal Report object. this code
works with all Adobe readers except for the new 7.07. If the client has
Adobe 7.07 nothing happens. With Adobe versions 5 and 6 the reader produces
the Crystal Report in PDF format.

Apparently they have changed something. does anyone have any ideas?

MyStream =
MyReport.FormatEngine.ExportToStream(MyExportRequestContext)
Response.ClearHeaders()
Response.ClearContent()
Response.ContentType = "application/pdf"
Dim myBuffer(MyStream.Length) As Byte
MyStream.Read(myBuffer, 0, CType(MyStream.Length, Integer))
Response.BinaryWrite(myBuffer)
Response.Flush()
Response.close()
Response.End()

--
Regards,
Gary Blakely


--
Regards,
Gary Blakely


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com