electronic stamps suitable to stamp on printed matter
The webstampManager provides all the necessary tools to generate webstamps as BMP files.
After creating an instance of the IWebstampManager interface the userID (IWebstampManager/UserID property), password (IWebstampManager/Password property) are set. Optionally the language (Default=enGerman) and base directory (Default=location of the COM module) properties can be supplied as well.
Next generate the list of available products (A Delivery, B Delivery, etc.) by the sequence if not already known
- IWebstampManager::SearchOptions(enOptionProductTypes,lProductType)
- IWebstampManager::GetFirstOption(plID,pbstrName) and IWebstampManager::GetNextOption_method(plID,pbstrName), respectively until FALSE is returned
By using enOptionProducts as OptionType and choosing a product type ID (e.g. lProductType=1 aka "Briefe Inland") the list of all products per product type is generated.
Finally, call the IWebstampManager::OrderStamp method specifying a product ID and a location where the stamp should be printed (either enLocationPostageZone or enLocationAddressZone). An unique order ID and the full path to the BMP stamp file is returned.
NOTE: The Swiss post does not provide a storno functionality for a previously generated stamp. Therefore store the unique order ID and use this order ID with the IWebstampManager::StornoStamp method to cancel a stamp should there be a paper jam or the like while printing! The next time IWebstampManager::OrderStamp is called the storno section is searched first for a suitable stamp. If there is one then this stamp is used without making a web request.
Furthermore, there are methods to get the current balance of your Swiss Post account (IWebstampManager::GetInfoBalance), get a journal URL of your webstamp activities (IWebstampManager::GetInfoReceipt), and generating a receipt of an ordered stamp (IWebstampManager::GetInfoReceipt), respectively.
To get a staring point with the webstampManager module there is a Visual Basic code snippet provided.