API browser of hospitalMCDRequest440 COM module


/images/arrow_right.png IHospitalMCDRequestManager::Print method
The Print method validates the given MCD data and prints a MCD of type hospitalMCDRequest_440.xsd on the local printer. The printer selection is done via the used report generator template file. If the template file was not connected to a printer with the PrintSetup method then the default printer with its default settings is used.

The bstrPrintTemplate variable obeys a special syntax and can optionally be used to set special print commands like using electronic webstamps, producing PDFs or changing print objects dynamically.


As a migration help there is a patch implemented that allows to override the generation of the default V440 printouts. The method is enforced to natively print V430 printouts without any loss of data by setting *plTimestamp= -223456780 as input value.

IMPORTANT LICENSE NOTE The report engine used is Hexatech's ViewPro (www.hexatech.com). If you supply your own template files then you must have your own ViewPro license. By using this COM module you implicitly agree upon this restriction!

space
 
/images/arrow_right.png C/C++ calling syntax
HRESULT Print( BSTR
YesNoType
YesNoType
BSTR
IAddress
long
BSTR
IHospitalMCDResult
VARIANT_BOOL
bstrPrintTemplate,
ePrintPreview,
eAddressRight,
bstrSenderID,
*pIReceiverAddress,
*plTimestamp,
*pbstrUsedSchema,
**ppIHospitalMCDResult,
*pbStatus);
 
/images/arrow_right.png Calling argument description
[in] BSTR bstrPrintTemplate The bstrPrintTemplate is either empty or build as defined in "Syntax of the printTemplate variable".

If bstrPrintTemplate is empty then the default print template of the supplied data language (IHospitalMCDRequest::Initialize method) is used.

[in] YesNoType ePrintPreview A Boolean that defines if print preview is used (enYes) or printing is done (enNo)
[in] YesNoType eAddressRight A Boolean that defines on which side -left or right- the receiver address should be printed.

Note that currently only right-sided addressing is allowed. Therefore eAddressRight is internally always set to enYes.

[in] BSTR bstrSenderID Short sender address identification or empty.

If set then the sender identification is printed atop of the receiver address as an alternative to the sender address on the envelop.

[in] IAddress *pIReceiverAddress An optional receiver address given via an IAddress interface.

This is used whenever the supplied insurance should be overridden as receiver by the supplied address. Note that the "inner" data is not affected or changed by this override.

[in, out] long *plTimestamp The timestamp of the XML document as epoch time (seconds elapsed since 1.1.1970) that is used as timestamp of the topmost object reference from that point on.

If the timestamp for the topmost object reference was already set (e.g. to produce a copy) then this same timestamp is returned.

PATCH: to ease migration issues this method is enforced to generate XML infoset of type hospitalMCDRequest_430.xsd if and only if *plTimestamp= -223456780 as input value.

[out] BSTR *pbstrUsedSchema The full XSD name that was used to print the data.

In a standard situation this would be hospitalMCDRequest_440.xsd. However, a downgrade to hospitalMCDRequest_430.xsd can be requested by using the *plTimestamp variable appropriately.

[out] IHospitalMCDResult **ppIHospitalMCDResult The IHospitalMCDResult interface handle that allows to get all loaded data back.
The handle is NULL if an error occurred.
[out, retval] VARIANT_BOOL *pbStatus Return status of the method. If pbStatus is VARIANT_FALSE then an error occurred and GetAbortInfo should be called to retrieve the error string.
 
/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.