TE Edit Control Java / HTML-JavaScript Help
Product page

TerSpoolEnd

End a multi-document print job.

static boolean TerSpoolEnd(name)
String name;The name of the print job. The print-job appears with this name in the printer queue.

Description: This method together with the TerSpoolBegin method is used to combine multiple calls to the TerMergePrint method into a single print job. When calling the TerMergePrint method, the member variable 'gr' within the TejPrint structure must be set to null.

Return Value: This function returns TRUE when successful.

Example:

     Tej.TerSpoolBegin("MyPrintJob")  // begin the print job
     Tej.TerMergePrint(...)   // print the first document
     Tej.TerMergePrint(...)   // print the second document
     Tej.TerMergePrint(...)   // print the third document
     Tej.TerSpoolEnd()        // end the print job