|
Inserts or updates the prepared document. |
|
|
void WriteDocument ( enum eReportMode eReportMode ) |
|
|
Parameters | eReportMode | [in] A value of the 'eReportMode' enumeration. | | Remarks |
| If the finance parameter 'Copy header remark to details' is set, then the finance remark will be copied to the financial book entry line. For explicit entry lines created with InsertDetail this does not happen automatically, you need to set that entry remark from your code. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Change the book date of the current document to 17/09/2025
pFinan->PrepareDocument (paUpdate);
pFinan->pBookDate = COleDateTime (2025, 9, 17, 0, 0, 0).m_dt;
pFinan->WriteDocument (rmFullReport);
|
|
|
C# |
|
// Change the book date of the current document to 17/09/2025
oFinan.PrepareDocument (ePrepareAction.paUpdate);
oFinan.pBookDate = new DateTime (2025, 9, 17);
oFinan.WriteDocument (eReportMode.rmFullReport);
|
|
|
VBS |
|
' Change the book date of the current document to 17/09/2025
Call oFinan.PrepareDocument(paUpdate)
oFinan.pBookDate = #9/17/2025#
Call oFinan.WriteDocument(rmFullReport)
|
|
|
VB.NET |
|
' Change the book date of the current document to 17/09/2025
oFinan.PrepareDocument(ePrepareAction.paUpdate)
oFinan.pBookDate = #9/17/2025#
oFinan.WriteDocument (eReportMode.rmFullReport)
|
|