API browser of webstampManager400 COM module


/images/arrow_right.png IWebstampManager::StornoStamp method
Since the Swiss Post webstamp module does not implement a storno functionality for a generated stamp you must reuse a stamp file e.g. in the case of a paper jam. The storno process therefore moves a previously generated stamp given by the order id into a storno container. If an OrderStamp is done, this storno container is searched first for a suitable stamp before requesting a stamp over the Internet.

The validity if a stamp is approximately 1 year.

space
 
/images/arrow_right.png C/C++ calling syntax
HRESULT StornoStamp( long
VARIANT_BOOL
lOrderID,
*pbStatus);
 
/images/arrow_right.png Calling argument description
[in] long lOrderID The order id of the stamp that should be canceled.
SetlOrderID = -1 to cancel all previously generated orders of the current session!
[out, retval] VARIANT_BOOL *pbStatus Return status
 
/images/arrow_right.png C/C++ return value
S_OK This value is returned if the function call was successful or if the return value of a boolean method signalling a true value. In this case the VARIANT_BOOL is set to VARIANT_TRUE.
S_FALSE This is the return value of a boolean method signalling a false return value. In this case the VARIANT_BOOL is set to VARIANT_FALSE.
E_name This value is returned if the function call was unsuccessful and an error exception was generated. Note that if you are using SmartPointers an exception is thrown under these conditions.