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