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