Using VB 2005 / ASP / CR XI R2 SP6
When exporting to .pdf getting error:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at CrystalDecisions.Shared.SharedUtils.WriteToResponse(HttpResponse response, Stream inputStream, Boolean exclusive)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName)
Code behind:
Response.Buffer = False
Response.ClearContent()
Response.ClearHeaders()
myCrystalReport1 = Session("myCrystalReport1")
myCrystalReport1.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "Exported_DailyProjectReport")