GetPackageLabel Method
Generates a shipping label for the specified package.
Syntax
public void getPackageLabel(int packageIndex);
Remarks
When this method is called, the following properties must have been set:
- CanadaPostAccount (required)
- Commodities (required)
- GroupId (required if ContractId is set)
- Packages (required)
- PaymentMethod (required if ContractId is set)
- ReasonForExport (required)
- RecipientContact (required)
- RecipientAddress (required)
- SenderContact (required)
- SenderAddress (required)
- ServiceType (required)
- ShipmentSpecialServices (optional)
To print out the ShippingLabel, you can save it to the ShippingLabelFile file in LabelImageType format.