ExportToHttpResponse method in crystal report not working...

Posted by Laghaterohan under ASP.NET on 4/22/2011 | Points: 10 | Views : 4471 | Status : [Member] | Replies : 1
Hello,


ABC.SetDataSource(objQueryProcess.ResultSet);
CrystalReportViewer1.ReportSource = ABC;
ABC.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Dividend Warrant"); // EXPORT TO PDF FORMAT


HERE ABOVE MY EXPORTTOHTTPRESPONSE METHOD IS NOT WORKING....AFTER THIS IT GOES INTO THE CATCH BLOCK WHERE I GET EXCEPTION : Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

I QUESTION IS WHY DOES THE REPORT DOES NOT GET EXPORTED TO THE PDF FORMAT???? WHERE AM I GOING WRONG?


THANKS!

Best Regards,
Rohan Laghate



Responses

Posted by: Laghaterohan on: 4/22/2011 [Member] Starter | Points: 25

Up
0
Down
i have set bool asAttachment is set to true still my File Download Box does not open.......why? My IE version is 8 Please help...

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response