Posted on: 10/31/2013 2:50:15 AM | Views : 563

Hello, I have a website I inherited that has a function which generates a PDF programmatically.  It runs a local SSRS report using a ReportViewer control rendered out to a byte array, then the byte array is written out to the screen using Response.BinaryWrite, including appropriate contenttype and header settings.  
HttpResponse response = HttpContext.Current.Response; response.ClearContent(); response.ClearHeaders(); response.ContentType = "application/pdf"; response.AppendHeader("content-disposition", "attachment;filename=Report.pdf"); response.Charset = ""; response.BinaryWrite(RenderedRptArr); response.End(); The issue is this solution works on some machines and not on others.  I have it working on a Windows 7 Home Premium machine (IIS7) and a Windows 8.1 (IIS 8.5), but on the desired machine (Windows 7 Home Premium running IIS7) and another optional target (Windows Server ...

Go to the complete details ...