hospitalCreditRequest generates a credit request
for role=physician and place=hospital
hospitalCreditRequest
    API DocBrowser   ·  Revision history
    Download area
    FAQ
 
home
system
integrators
search the
site
 

validator
modules
invoice
modules
credit
modules
miscellaneous
modules
tools

  Design by TMR AG
  © by sumex1.net
 
IHospitalCreditRequestManager::PrintFirst method

Description  V4.10/28 Sep 2005 
Validates the first credit request data and prints the credit request on the local printer.

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 crediteManager you implicitly agree upon this restriction!!
hospitalCreditRequest
  IHospitalCreditRequestManager
    PrintFirst

C/C++ syntax
HRESULT  PrintFirst( YesNoType   bMergeSponsors,
BSTR   bstrPrintTemplate,
YesNoType   ePrintPreview,
BSTR   bstrSenderID,
IAddress   *pIReceiverAddress,
long   lHWND,
long   *plTimestamp,
VARIANT_BOOL   *pbStatus);

Parameter description
[in]   YesNoType   bMergeSponsors   Boolean if the number of credit requests should be optimized e.g. if the EAN number of two sponsors are the same then the data are merged into one credit request.
[in]   BSTR   bstrPrintTemplate   bstrPrintTemplate is either empty or of the general form

actionKey[(objectName1=text;objectName2=text2;...)][=printTemplateFile][#INIPATH=inipath)

for individual printing and/or changing of static texts

  • actionKey is "Detail" for the ordinary credit request form.
     
  • objectName1=text; is an optional static text substitution enclosed in braces () where objectName1 is the object name (cf. inside the print template for the names) and text is the substitution. The substitution can be empty as well!
     
  • printTemplateFile is an optional external print template file name (full path!)
     
  • inipath is an optional path the print template's INI file. The report engine uses this path to find an .ini file with the same name as the print template but with an extension of .vpd. This allows for global settings of a print template in a LAN.
[in]   YesNoType   ePrintPreview   Enable or disable the preview.
If preview is enabled the preview dialog shows 3 buttons «cancel», «postpone» and «accept»
  • Pressing the «cancel» button returns a lTimestamp < 0 signaling to cancel the previewing (e.g. in loop of several invoices)
  • Pressing the «postpone» button returns a lTimestamp = 0 signaling to postpone the selected credit request for printing.
  • Pressing the «accept» button returns a normal lTimestamp > 0 signaling to accept the selected credit request for printing. The print method is then called again setting ePrintPreview=enNo!
[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 credit request 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). This serves as a primary identification number - do store this number e.g. for a later reprint!
[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.