|
|
 |
IMDInvoiceRequestManager::Print method
Description |
V4.00/ 6 Dec 2004 |
Validates the invoice against the XSD schema file and prints the invoice on the local printer. bstrPrintTemplate is either empty or of the general form actionKey[(objectName1=text;objectName2=text2;...)][=printTemplateFile][#INIPATH=inipath)
Here are some usage examples: - bstrPrintTemplate: ""
denotes a standard printing situation depending on the payment mode. For TG a patient summary invoice on A4 with ESR attached on the bottom addressed to the guarantor plus a detailed health care invoice ("Rückforderungsbeleg") is printed (patSummary + hcDetail).
For TP a detailed invoice ("TP Rechnung") with an ESR line is printed (hcDetail). - bstrPrintTemplate: pat2patDetail
prints a detailed invoice for a patient (title is adjusted accordingly) addressed to the patient - bstrPrintTemplate: hcSummary(DOCUMENT_TITLE_SUMMARY=Alternate title for HealthCare company;)
prints a summary invoice on A4 with ESR attached on the bottom for a health care company. The title is adjusted as given above. - bstrPrintTemplate: patSummary=C:\myForms\myPrintForm.vps
uses the print template "C:\myForms\myPrintForm.vps". Please note the license restriction below! An optional INI file with the name "C:\myForms\myPrintForm.vpd" is searched under this condition. - bstrPrintTemplate: #INIPATH=\\host1\\myForms\
the default path for the .ini files (place of the installed component) is changed to "\\host1\\myForms\". If "\\host1\\myForms\" is accessible by all hosts of the LAN then the same INI settings can be used. - bstrPrintTemplate: (DOCUMENT_TITLE_SUMMARY=Alternate title for HealthCare company;)
changes the default title of a summary page to the given one.
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 the invoiceManager you implicitly agree upon this restriction!!
C/C++ syntax |
Parameter description |
| [in] |
BSTR |
bstrPrintTemplate |
Either empty for default printing or special formed argument (cf. above) for individual printing and/or changing of static texts |
| [in] |
YesNoType |
ePrintSetup |
Display a dialog for printer setup. |
| [in] |
YesNoType |
eSortServices |
Sorting type for service records in printed invoices. |
| [in] |
BSTR |
bstrSenderID |
Short sender address identification. If set than the sender identification is printed atop of the receiver address as an alternative to the sender address on the envelop. |
| [in] |
IAddress |
*pIReceiverAddress |
Address interface instance to set an alternate receiver address for the printed invoice overriding the default address behavior. |
| [in] |
long |
lHWND |
Handle to the owner window for windows created while printing. If this parameter is 0, the print windows have no owner window. |
| [out] |
long |
*plTimestamp |
Timestamp of the XML document as epoch time (seconds elapsed since 1.1.1970). |
| [out] |
IMDInvoiceResult |
**ppIMDInvoiceResult |
IMDInvoiceResult interface. |
| [out, retval] |
VARIANT_BOOL |
*pbStatus |
Return status |
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. |
|
 |
|
|