Click or drag to resize

TrackingServicesPrintLabel Method

Prints a label to the specified printer using the specified label template, and context information related to the specified transactionId.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void PrintLabel(
	Guid sessionId,
	Guid transactionId,
	string labelTemplateName,
	string printerName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
transactionId
Type: SystemGuid
The transaction Id returned by the TransactionId property of the StartResult.
labelTemplateName
Type: SystemString
The name of the pre-configured label to print.
printerName
Type: SystemString
The name of the printer to be used (as it is known on the FactoryLogix server).
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionThrown if the labelTemplateName or printerName parameters are invalid.
TransactionNotFoundExceptionThrown if the transactionId parameter is invalid.
LabelPrintingExceptionThrown when printer software is not installed or the printing process is not able to read and write to a temp directory.
See Also