Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


RegisterScript()  


Syntax: 

Code Block
RegisterScript(toScriptObject, tcScriptMethod, tnZOrder, tcPageScope, tnNumberingType) 

Parameters:

toScriptObject
  The PDFLScripts object reference

tcMethodName
  The name of the method containing the script

tnZIndex

tnZOrder
  0 ... print below (before) the report page
  1 ... print above (after) the report page

tcScope

tcPageScope
  Defines which pages to invoke the scripts on. Can contain "ALL", "ODD", "EVEN" and numbers delimited with commas. Hyphens can be used to define the from-to scope. Examples: "ODD", "1,5-19", "ODD,4,8"

tnPageNumberingType

tnNumberingType
  Defines how XFRX determines the page number: 
0 ... absolute - the page number in the document, 
1 ... relative - the page number in the current report, 
2 ... the value of _PAGENO

UnregisterAllScripts ()  


Syntax: 

Code Block
UnregisterAllScripts()

If multiple reports are merged together and you would like to apply scripts on a certain report but not on subsequent ones, call this method to remove all scripts registrations.

This method does not need to be called at the end of the reports processing.


Table of Contents