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

pFinan->pBookDate = COleDateTime (2024, 9, 17, 0, 0, 0).m_dt;

pFinan->WriteDocument (rmFullReport);

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

oFinan.pBookDate = new DateTime (2024, 9, 17);

oFinan.WriteDocument (eReportMode.rmFullReport);

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

oFinan.pBookDate = #9/17/2024#

Call oFinan.WriteDocument(rmFullReport)

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

oFinan.pBookDate = #9/17/2024#

oFinan.WriteDocument (eReportMode.rmFullReport)