Posted 3 April 2020, 3:42 am EST
I have two questions relating to running scripts.
- How do I debug script?
- The following script stopped working many months. Why?
Public Sub AddDocument(ByRef doc As S1PrintDocument,
ByVal EnsureEvenPages As Boolean)
If EnsureEvenPages Then
Dim re As RenderEmpty = New RenderEmpty With {
.ObjectResolvedScript = Script
}
doc.ScriptingOptions.Language = Scripting.ScriptLanguageEnum.VB
doc.Body.Children.Add(re)
doc.Body.Children.Add(New RenderEmpty())
End If
MyBase.Items.Add(doc)
End If
doc.Dispose()
doc = Nothing
GC.Collect()
GC.WaitForPendingFinalizers()
End Sub