Aller au contenu principal

PrintWorkOrder

Structure

PrintWorkOrder(sJobNum, sTemplateName, sPrintType, sPrinter, sEmailAddress : String; bAlwaysCreateNew: Boolean)

Parameters

Parameter | Type | Description
| sJobNum | String | the work order number to be printed. Use LookupCurrentWO to return the current work order for the event.sTemplateName | String | the Work Order template from PrintBuilder that should be createdsPrintType | String | can be either E-MAIL, FILE, PRINTER, or SCREEN.sPrinter | String | only needed if the sPrintType = PRINTER. Value can be either 0, 1, 2, 3, 4, or 5 (enter as text). 0 sends the print job to the Windows default printer. Printers 1-5 map to the printers specified in User/Location Settings.sEMailAddress | String | only needed if the sPrintType = E-MAIL. This is the email address that will receive the work order pdf. |

bAlwaysCreateNew = a boolean value, True or False. If this is true, then a new work order revision is always created and saved as a work order document (work order documents show as icons in the lower-right corner of work orders in the Order System). If this is false, then the most recent work order (if any) will be recalled. If no work order revisions have been previously created, a new revision will be made. Important: when bAlwaysCreateNew is False, the ONLY option you can use for sPrintType is FILE.

Description

This function prints a work order template for the work order noted with sJobNum. This report can be sent to printer, email, or screen. This procedure should only be called after the work order has been created - 'After Work Order Creation' trigger action is suggested.

Example

No example provided

Application Compatibility

IndySoft Calibration Management, IndySoft Commercial Lab Management, IndySoft Tool Management

Also See

Previous to Version 14, the PrintWorkOrder function only utilized PrintWorkOrder(sJobNum, sTemplateName, sPrintType, sPrinter, sEmailAddress) and sPrintType did not have the "FILE" option. |