![]() |
VWorks software calls the PrintAndApply method to tell the plugin to print and apply a labware label using the data provided in the labelxml parameter.
[in] A PrinterMetaData XML block that contains the data to be printed on the labware label. 0 = The request was completed (RETURN_SUCCESS)1 = Something was wrong with the input, so the request was not completed (RETURN_BAD_ARGS)2 = The request was not completed (RETURN_FAIL)VWorks software passes a PrinterMetaData XML block into the labelxml parameter of the PrintAndApply method.The PrinterFormatMetaData XML block contains the PrinterMetaData element and all its children. This XML block provides the name of a label format, its associated field names, and the contents of each field, if any. The PrinterFormatMetaData XML block also specifies the side of the labware on which to apply the label.
The following sample code is a PrinterMetaData XML block received by the plugin from VWorks software as a string in the labelxml parameter of the Print method. VWorks software tells the plugin to print the value barcode in the field named 1 using the label format named Name. The value of the Side attribute tells the plugin to print and apply the label.