Venice
SInvce::GetNumDetails
 
Gets the number of details.
 
SHORT GetNumDetails ()
 
Return value
A SHORT containing the number of details of the current document.
 
See Also
CreateSInvce
Handling invoicing documents using the SDK
PrepareDocument
CancelDocument
 
Samples
 
C++
 
// Get the number of details of the current document
short sNumDets;

pSInvce->PrepareDocument (paView);

sNumDets = pSInvce->GetNumDetails ();
    
if (sNumDets != 0)
{
    // Process data
}

pSInvce->CancelDocument ();

C#
 
// Get the number of details of the current document
short sNumDets;

oSInvce.PrepareDocument (ePrepareAction.paView);

sNumDets = oSInvce.GetNumDetails ();
    
if (sNumDets != 0)
{
    // Process data
}

oSInvce.CancelDocument ();

VBS
 
' Get the number of details of the current document
Dim sNumDets

Call oSInvce.PrepareDocument(paView)

sNumDets = oSInvce.GetNumDetails()

If sNumDets <> 0 Then
    ' Process data
End If

Call oSInvce.CancelDocument()

VB.NET
 
' Get the number of details of the current document
Dim sNumDets As Short

oSInvce.PrepareDocument(ePrepareAction.paView)

sNumDets = oSInvce.GetNumDetails()
    
If sNumDets <> 0 Then
    ' Process data
End If

oSInvce.CancelDocument()