[]
Gets or sets the script that is executed before resolving the current object.
public string ObjectResolvingScript { get; set; }
This script may be used to adjust all properties of an object before resolving. For example the following code adds an empty page to the document if it contains an even number of pages prior to resolving the current object:
RenderEmpty re = new RenderEmpty();
re.ObjectResolvingScript = "if Document.Pages.Count mod 2 <> 0 then\r\n" +
"Dim lc As LayoutChangeNewPage = New LayoutChangeNewPage()\r\n" +
"lc.PageLayout = New PageLayout()\r\n" +
"lc.PageLayout.PageFooter = New RenderEmpty()\r\n" +
"RenderObject.LayoutChangeAfter = lc\r\n" +
"end if";