Why has my PDF rendering stopped all of a sudden?

J

John

Hi all,

I have Acrobat reader 6 installed as I usually do. I've recently had to
reinstall Windows and associated programmes and have my web apps up and
running except for the PDF rendering. The Crystal reports are running and
I'm not receiving errors but the final rendering as though it should
automatically load the Adobe PDF web viewer is not working. I have recently
installed VS 2005 Beta2 to check out but surely this won't affect my other
stuff?

Here's the code that's been working for a year now:
HttpContext.Current.Response.ClearContent()

HttpContext.Current.Response.ClearHeaders()

s =
rpt.ExportToStream(CrystalDecisions.[Shared].ExportFormatType.PortableDocFor
mat)

HttpContext.Current.Response.ContentType = "application/pdf"

HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;
filename=Report.pdf")

HttpContext.Current.Response.BinaryWrite(s.ToArray)

HttpContext.Current.Response.End()



Any ideas?

Regards

John.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,851
Latest member
CliftonCor

Latest Threads

Top