When opening a report in xlsx using Q1'12 controls, this is throwing an error: Thread was being aborted. It then prompts me to open or save it, then says "it couldn't be downloaded". But when I click "retry" it opens fine in excel as xlsx.
Here is my code:
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("xlsx", reportToExport, null);
We have not been able to reproduce any problems with your code and the latest Q2 internal build. So our recommendation is to upgrade to the latest version and change your code like this to see if you would still be having problems:
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >
I encountered the same strange behavior when writing XLSX files to an HTTP response (in a plain ASP.net website, not a Telerik product). When I called Response.End() the "Thread was being aborted" exception was thrown.
This behavior was strange in that if I wrote a XLS file in the same way, it was not a problem. This is not specific to Sitefinity or Telerik. I was able to fix my problem by removing the "Response.End()" call and let the response end on it's own. Others on the internet have encourntered this error by a Server.Transfer or a Response.Redirect. Others catch the ThreadAbortException and swallow the error, and just move on.
Anyhow, I am hoping others may benefit from this, as I found this thread while researching my own problem.