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

StackOverflow on Excel export

1 Answer 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Søren
Top achievements
Rank 1
Søren asked on 24 Feb 2009, 03:57 PM

Dear Community,

I have recently encountered a problem when trying to work with hide/show of report content. So shortly draft out my problem, I have a report with Master/Detail, on the master I have the following code in my report's cs file

bool bShow; 
private void subReport_ItemDataBound(object sender, System.EventArgs e)

{

    bShow = (

bool) this.ReportParameters["ShowDetails"].Value;

 

 

    (sender

 

 

 

as Telerik.Reporting.Processing.SubReport).Visible = bShow; 

 

 

 

 


    //More content will be added here...

 

 

}

This works flawless and my excel export works perfectly. If I add the following line into the method

 

    masterDetail_Total.ShowDetailSection(bShow);

where the method ShowDetailSection(bool bShow) is defined in the detail report of the master report, so that the complete method will yeild

bool bShow; 
private void subReport_ItemDataBound(object sender, System.EventArgs e)

{

    bShow = (

 

bool) this.ReportParameters["ShowDetails"].Value;  

 

 

    (sender

 

as Telerik.Reporting.Processing.SubReport).Visible = bShow;

 

 

 

    // Known Issue: 'Visible = false' will cause excel export to throw an StackOverflow exception

 

 

 

 

   masterDetail_Total.ShowDetailSection(bShow);
}

the reportviewer will throw an StackOverflow exception whenever the report parameter "ShowDetails" = false.

Any idea on how to solve this problem?

Best regards,
S. Engel

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Feb 2009, 11:57 AM
Hi Søren,

It would be best if you open a support ticket and send us a sample project showing the described erroneous behavior. Once we review it, we would be able to provide you with more info.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Søren
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or