C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / RenderImage Class / ObjectResolvingScript Property

In This Topic
ObjectResolvingScript Property (RenderImage)
In This Topic
Gets or sets the script that is executed before resolving the current object.
Syntax
'Declaration
 
Public Property ObjectResolvingScript As String
 
Remarks
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";
See Also