ISInvoice.Print

Description

This function prints the invoice.

Syntax

object.Print

Part Attribute Type Description
object Required
The object always implements the ISInvoice interface

Example

Print the invoice after user confirmation.

Dim aPatient
Dim aFilter
Dim aInvoices, aInvoice
Dim i    

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateInvoiceFilter
aFilter.PatientId = aPatient.ID
set aInvoices = aFilter.Load

for i = 0 to aInvoices.Count - 1
  set aInvoice = aInvoices.Items(i)
 
  if MsgBox("Would you like to print the invoice " & vbNewLine & aInvoice.Reference & "?",_
    vbYesNo, "Printing confirmation") = vbYes then aInvoice.Print
next  
Note:

In Profile Client v8 on User Interface the invoice can be printed by clicking the Print button in Financial > Audit Transactions > Invoices > Open the selected invoice.

Version information

Added in v7.8.0