Private Sub fi_exportfiletopdf(ByVal pcFile As String, ByVal pckey As String) ' this method will redirect the user to a pdf ' the system will prompt them to open the file or save it ' the pdf is opened in a separate window Response.Clear() Response.Buffer = True Response.ContentType = "application/pdf" Response.AddHeader("content-disposition", "attachment;filename=" + pckey + ".pdf") Response.Charset = "" Me.EnableViewState = False Dim oFileStream As FileStream Dim FileSize As Long oFileStream = New FileStream(pcFile, FileMode.Open) FileSize = oFileStream.Length Dim Buffer(CInt(FileSize)) As Byte oFileStream.Read(Buffer, 0, CInt(FileSize)) oFileStream.Close() Response.OutputStream.Write(Buffer, 0, FileSize) Response.Flush() Response.Close() End SubI can actually browse to the file directly, and it works fine - somehow in the code, the pdf is being corrupted on this box. Any ideas?