422,027 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,027 IT Pros & Developers. It's quick & easy.

ThreadAbortException at ExportToHttpResponse()

P: 1
this is my code and i am trying to export pdf crystal report
string FileName = Server.MapPath("~/CMM/CrystalReport/Box.rpt");
rpt.Load(FileName);
rpt.SetDataSource(ds);
rpt.ExportToHttpResponse(CrystalDecisions.Shared.E xportFormatType.PortableDocFormat, Response, true, "BoxIssueReport");
Oct 8 '17 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,712
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.Redirect method.

Look to see if there is aversion of the ExportToHttpResponse 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.
Oct 10 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.