Venice
Sndry::InsertEntProp
 
Inserts an entry proposal in the document.
 
void InsertEntProp (
    VARIANT vCode
)
 
Parameters
vCode
[in] A VARIANT stating the code of the entry proposal you want to insert. The type of this VARIANT determines the action to be taken by the SDK:
Subtype Action
VT_EMPTY The entry proposal for a blank code is used if it exists, otherwise no details are added.
BSTR (VT_BSTR) The given value is used if it exists, otherwise an exception is thrown.
 
Remarks
The details of the entry proposal are added after the existing details.
 
See Also
CreateSndry
Handling accounting documents using the SDK
PrepareDocument
GetNumDetails
WriteDocument
 
Samples
 
C++
 
// Insert an entry proposal with code 'PRP01' in the document.
int iNumDets;

pSndry->PrepareDocument (paInsert);

// Fill the necessary header data

iNumDets = pSndry->GetNumDetails ();

pSndry->InsertEntProp ("PRP01");

for (int iNew = pSndry->GetNumDetails (); iNew > iNumDets; iNew--)
{
    // Add necessary data to the details of the proposal
}

pSndry->WriteDocument (rmFullReport);

C#
 
// Insert an entry proposal with code 'PRP01' in the document.
int iNumDets;

oSndry.PrepareDocument (ePrepareAction.paInsert);

// Fill the necessary header data

iNumDets = oSndry.GetNumDetails ();

oSndry.InsertEntProp ("PRP01");

for (int iNew = oSndry.GetNumDetails (); iNew > iNumDets; iNew--)
{
    // Add necessary data to the details of the proposal
}

oSndry.WriteDocument (eReportMode.rmFullReport);

VBS
 
' Insert an entry proposal with code 'PRP01' in the document.
Dim iNumDets, iNew

Call oSndry.PrepareDocument(paInsert)

' Fill the necessary header data

iNumDets = oSndry.GetNumDetails()

Call oSndry.InsertEntProp("PRP01")

For iNew = oSndry.GetNumDetails() To iNumDets
    ' Add necessary data to the details of the proposal
Next

Call oSndry.WriteDocument(rmFullReport)

VB.NET
 
' Insert an entry proposal with code 'PRP01' in the document.
Dim sNumDets, sNew As Short

oSndry.PrepareDocument(ePrepareAction.paInsert)

' Fill the necessary header data

sNumDets = oSndry.GetNumDetails()

oSndry.InsertEntProp("PRP01")

For sNew = oSndry.GetNumDetails() To sNumDets
    ' Add necessary data to the details of the proposal
Next

oSndry.WriteDocument(eReportMode.rmFullReport)