Skip to content

Instantly share code, notes, and snippets.

@sAbakumoff
Created April 4, 2014 03:23
Show Gist options
  • Save sAbakumoff/9967433 to your computer and use it in GitHub Desktop.
Save sAbakumoff/9967433 to your computer and use it in GitHub Desktop.
static void ProcessReportComponent(IReportComponent component)
{
if (component == null)
return;
if (component is IReportComponentContainer)
{
var container = component as IReportComponentContainer;
foreach (var comp in container.Components)
{
ProcessReportComponent(comp as IReportComponent);
}
}
if (component is TableOfContents)
{
var toc = component as TableOfContents;
foreach (var level in toc.Levels)
{
level.Label = ExpressionInfo.FromString("=DocumentMap.Label");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment