ThreadAbortException at ExportToHttpResponse()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sachin1991
    New Member
    • Oct 2017
    • 1

    ThreadAbortException at ExportToHttpResponse()

    this is my code and i am trying to export pdf crystal report
    string FileName = Server.MapPath( "~/CMM/CrystalReport/Box.rpt");
    rpt.Load(FileNa me);
    rpt.SetDataSour ce(ds);
    rpt.ExportToHtt pResponse(Cryst alDecisions.Sha red.ExportForma tType.PortableD ocFormat, Response, true, "BoxIssueReport ");
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I have never used crystal reports before.
    That being said, I have experienced the problem you are facing when I failed to indicate that the response should be ended while using the HttpResponse.Re direct method.

    Look to see if there is aversion of the ExportToHttpRes ponse method that will end the response when you use it so that you can avoid this problem.

    Or else, look to ending the response yourself.

    Or you could look into writing the file directly to the output stream instead.

    Comment

    Working...