This is a migrated thread and some comments may be shown as answers.

Gembox, generating an .xls file after callback

5 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
iomega 55
Top achievements
Rank 1
iomega 55 asked on 30 Dec 2009, 02:37 AM
I have the next code, that it's executed after a postback inside a grid(www.tedit.net)

            ExcelFile efE = new ExcelFile(); 
            ExcelWorksheet wsE = efE.Worksheets.Add("email"); 
            Response.Clear(); 
            Response.ContentType = "application/vnd.ms-excel"
            Response.AddHeader("Content-Disposition""attachment; filename=" + e.Row["rowno"] + "_Email.xls"); 
            efE.SaveXls(Response.OutputStream); 
            Response.End(); 
 

I already see this next:
not-on-top-of-call-stack

My problem is when the code reaches Response.End it throws an exception error. In the link I mention, it doesnt say how to resolve the issue.

This is the error message:
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

Can you help please?

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 04 Jan 2010, 04:36 PM
Hello,

I'm not sure what is the relation between RadControls and your scenario - could you please elaborate? I suppose you posted your question in a wrong forum.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
mark baer
Top achievements
Rank 1
answered on 04 May 2011, 06:26 PM
Were you ever able to resolve this?  We are experiencing something similar exporting a pdf file.

thanks

mark
0
Daniel
Telerik team
answered on 10 May 2011, 01:57 PM
Hello Mark,

The original poster was using third-party exporting library - is that so in your case?
If not, please provide more information about the issue.

Regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
mark baer
Top achievements
Rank 1
answered on 10 May 2011, 04:37 PM
We resolved it by just opening up a new window to a page that wasn't using Ajax.  It would be nice if we didn't have to do that, but we have a solution, so we are okay now.

thanks

mark
0
Daniel
Telerik team
answered on 13 May 2011, 11:54 AM
Hello Mark,

Please isolate the problem in a simple demo and attach it to a formal support ticket. I will debug your code locally and will try to provide a workaround, specifically tailored for your scenario.
Isolating a problem in a sample project

Best regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
iomega 55
Top achievements
Rank 1
Answers by
Daniel
Telerik team
mark baer
Top achievements
Rank 1
Share this question
or