Created
April 4, 2014 03:23
-
-
Save sAbakumoff/9967433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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