By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,882 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,882 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.ExportToHttpResponse(CrystalDecisions.Shared.E xportFormatType.PortableDocFormat, Response, true, "BoxIssueReport");
Oct 8 '17 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,731
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.