SInvce::PrepareDocument (Interface: SInvce)
 
Prepares the object for handling an invoice and its details.
 
void PrepareDocument (
    enum ePrepareAction ePrepareAction
)
 
Parameters
ePrepareAction
[in] A value of the 'ePrepareAction' enumeration.
 
See Also
CreateSInvce
Handling invoicing documents using the SDK
WriteDocument
CancelDocument
 
Samples
 
C++
 
// Change the document date of the current document to 17/09/2021
pSInvce->PrepareDocument (paUpdate);

pSInvce->pDocDate = COleDateTime (2021, 9, 17, 0, 0, 0).m_dt;

pSInvce->WriteDocument (rmFullReport, VARIANT_FALSE, VARIANT_FALSE);

C#
 
// Change the document date of the current document to 17/09/2021
oSInvce.PrepareDocument (ePrepareAction.paUpdate);

oSInvce.pDocDate = new DateTime (2021, 9, 17);

oSInvce.WriteDocument (eReportMode.rmFullReport, false, false);

VBS
 
' Change the document date of the current document to 17/09/2021
Call oSInvce.PrepareDocument(paUpdate)

oSInvce.pDocDate = #9/17/2021#

Call oSInvce.WriteDocument(rmFullReport, False, False)

VB.NET
 
' Change the document date of the current document to 17/09/2021
oSInvce.PrepareDocument(ePrepareAction.paUpdate)

oSInvce.pDocDate = #9/17/2021#

oSInvce.WriteDocument (eReportMode.rmFullReport, False, False)