Telerik.Reporting.Processing.DetailSection processingDetail = (Telerik.Reporting.Processing.DetailSection)sender;
foreach (Telerik.Reporting.Processing.ReportItem item in processingDetail.Items)
{
if (item is Telerik.Reporting.Processing.Panel)
{
Telerik.Reporting.Processing.Panel pan = (Telerik.Reporting.Processing.Panel)item;
foreach (Telerik.Reporting.Processing.ProcessingElement ele in pan.ChildElements)
{
if (ele is Telerik.Reporting.Processing.TextBox)
{
if (ele.Name == node.Attributes["Flag"].Value.ToString().Replace("$#", "").Replace("#$", ""))
{
Telerik.Reporting.Processing.TextBox txt = (Telerik.Reporting.Processing.TextBox)ele;
txt.Value = node.InnerText;
}
}
if (ele is Telerik.Reporting.Processing.CheckBox)
{
if (ele.Name == node.Attributes["Flag"].Value.ToString().Replace("$#", "").Replace("#$", ""))
{
Telerik.Reporting.Processing.CheckBox chk = (Telerik.Reporting.Processing.CheckBox)ele;
if (node.InnerText == "X")
{
chk.Value = System.Windows.Forms.CheckState.Checked;
}
else
{
chk.Value = System.Windows.Forms.CheckState.Unchecked;
}
}
}
}
}
}
Many Thanks
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
Hello,
Do you plan to developpe Telerik Reporting for WPF? If yes, in how many time it will be ready?
If no, do you have a sample for integrate a Telerik Reporting .net in Wpf Application?
Thank you for your answer