generalInvoiceResponse - the COM module for
loading and analyzing invoice XML responses
generalInvoiceResponse
    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
 
IGeneralInvoiceResponseManager::Print method

 Description  V4.30/26 Aug 2010 
The Print method prints the response data of an accepted XML type 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 producing PDFs or changing print object dynamically.


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!!

 C/C++ syntax
HRESULT  Print( BSTR   bstrPrintTemplate,
YesNoType   ePrintPreview,
long   lEsrExcludeAttributes,
VARIANT_BOOL   *pbStatus);

 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 [PATCH]
[in]   YesNoType   ePrintPreview   A Boolean that defines if print preview is used (enYes) or printing is done (enNo)
[in]   long   lEsrExcludeAttributes   This variable defines which principal parts of the ESR should not be printed. lEsrExcludeAttributes is a 32-bit integer where the possible excludes are values from the EsrExcludeAttributes data type and are ORed together to form the overall command.

This feature is necessary to exclude certain parts of the ESR data from printing due the pre-printed forms.

[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.

 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.
generalInvoiceResponse
  IGeneralInvoiceResponseManager
    Print