|
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 |
|
If an entry proposal code is found in the financial book card, this value is used. If no proposal code is found in the financial book card, 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 |
|
|
|
Samples |
|
|
C++ |
|
// Insert an entry proposal with code 'PRP01' in the document.
int iNumDets;
pFinan->PrepareDocument (paInsert);
// Fill the necessary header data
iNumDets = pFinan->GetNumDetails ();
pFinan->InsertEntProp ("PRP01");
for (int iNew = pFinan->GetNumDetails (); iNew > iNumDets; iNew--)
{
// Add necessary data to the details of the proposal
}
pFinan->WriteDocument (rmFullReport);
|
|
|
C# |
|
// Insert an entry proposal with code 'PRP01' in the document.
int iNumDets;
oFinan.PrepareDocument (ePrepareAction.paInsert);
// Fill the necessary header data
iNumDets = oFinan.GetNumDetails ();
oFinan.InsertEntProp ("PRP01");
for (int iNew = oFinan.GetNumDetails (); iNew > iNumDets; iNew--)
{
// Add necessary data to the details of the proposal
}
oFinan.WriteDocument (eReportMode.rmFullReport);
|
|
|
VBS |
|
' Insert an entry proposal with code 'PRP01' in the document.
Dim iNumDets, iNew
Call oFinan.PrepareDocument(paInsert)
' Fill the necessary header data
iNumDets = oFinan.GetNumDetails()
Call oFinan.InsertEntProp("PRP01")
For iNew = oFinan.GetNumDetails() To iNumDets
' Add necessary data to the details of the proposal
Next
Call oFinan.WriteDocument(rmFullReport)
|
|
|
VB.NET |
|
' Insert an entry proposal with code 'PRP01' in the document.
Dim sNumDets, sNew As Short
oFinan.PrepareDocument(ePrepareAction.paInsert)
' Fill the necessary header data
sNumDets = oFinan.GetNumDetails()
oFinan.InsertEntProp("PRP01")
For sNew = oFinan.GetNumDetails() To sNumDets
' Add necessary data to the details of the proposal
Next
oFinan.WriteDocument(eReportMode.rmFullReport)
|
|