ClientPrintExecutionDef

Top  Previous  Next

The purpose and the properties of this element (ClientPrintExecutionDef) is the same as ClientPrintCommand element. The only difference is, unlike ClientPrintCommand, this element does not provide a button element.

The printing can be started from any DHTML event procedure on the page. To copy the necessary Javascript code that starts the printing, right-click on this element on the page and select the 'Copy "Javascript Function Call" to Clipboard' option on the context menu.

The code copied to the Clipboard can be used in an event procedure as follows:

 

PrintMgr.print({

  commandName : 'ClientPrintExecutionDef1'

  ,formName   : 'ProcessForm1'

  ,originPage : '/LocalPrint'

})