Venice
SDeliv::PrepareDocument
 
Prepares the object for handling a sales delivery and its details.
 
void PrepareDocument (
    enum ePrepareAction ePrepareAction
)
 
Parameters
ePrepareAction
[in] A value of the 'ePrepareAction' enumeration.
 
See Also
CreateSDeliv
Handling invoicing documents using the SDK
WriteDocument
CancelDocument
 
Samples
 
C++
 
// Change the document date of the current document to 17/09/2024
pSDeliv->PrepareDocument (paUpdate);

pSDeliv->pDocDate = COleDateTime (2024, 9, 17, 0, 0, 0).m_dt;

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

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

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

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

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

oSDeliv.pDocDate = #9/17/2024#

Call oSDeliv.WriteDocument(rmFullReport, False, False)

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

oSDeliv.pDocDate = #9/17/2024#

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