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/2024
pSInvce->PrepareDocument (paUpdate);

pSInvce->pDocDate = COleDateTime (2024, 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/2024
oSInvce.PrepareDocument (ePrepareAction.paUpdate);

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

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

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

oSInvce.pDocDate = #9/17/2024#

Call oSInvce.WriteDocument(rmFullReport, False, False)

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

oSInvce.pDocDate = #9/17/2024#

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