Chrome升級53.0.2785.116 ReportViewer匯出PDF報表錯誤

有使用ReportViewer匯出PDF報表的注意了

Chrome更新53.0.2785.116版本之後
利用ReportViewer把匯出PDF報表功能寫在Button內
會發生錯誤

Dim warnings As Warning() Dim streamids As String() Dim mimeType As String Dim encoding As String Dim extension As String Dim bytes As Byte() = ReportViewer1.LocalReport.Render("Pdf", Nothing, mimeType, encoding, extension, streamids, warnings) Response.Clear() Response.AddHeader("Content-Disposition", "attachment; filename=BTrip-" & GridView1.SelectedValue & ".pdf") Response.AddHeader("Accept-Header", reportBytes.Length.ToString()) Response.ContentType = "application/octet-stream" Response.OutputStream.Write(bytes, 0, bytes.Length) 繼續閱讀