PdcFinancial.LogReport

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

LogReport as String

Description

Returns all messages of the last export

Notes

This method returns the report of the last export action. If an invoice is exported correctly, in the report "Factuur ###### is geexporteerd" is shown. When an invoice export goes wrong, the failure message is shown in the report.

Code example

dim strLogTekst

  pdc.Import_Export.Financial.EmptyExportTable
  pdc.Import_Export.Financial.SalesInvoiceExecute
  strLogTekst = "Sales report:" & vbCrLf & pdc.Import_Export.Financial.LogReport

  pdc.Import_Export.Financial.EmptyExportTable
  pdc.Import_Export.Financial.PurchaseInvoiceExecute
  strLogTekst = strLogTekst & vbCrLf & vbCrLf & _
    "Purchase report:" & vbCrLf & pdc.Import_Export.Financial.LogReport

  if Trim(strLogTekst) <> "" then
    msgbox strLogTekst
  end if

Availability

Available since September 2007 (From version 3.8).