GetLineItemReferencedDocument
Methode (Function) · gibt Byte() zurück
GetLineItemReferencedDocument ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Reads the referenced document with embedded attachment of a line item.
Rückgabe: Content of the embedded attachment. Empty array if the line has no attachment, the index is out of range or on error.
Hinweis: The output arguments are only filled if the line item has an embedded attachment.
Deklaration
Public Function GetLineItemReferencedDocument(ByVal LineIndex As Integer, ByRef URIID As String, ByRef FileName As String, ByRef MimeType As String, ByRef IssuerAssignedID As String, Optional ByRef LineID As String = "", Optional ByRef TypeCode As String = "", Optional ByRef ReferenceTypeCode As String = "", Optional ByRef Document_Date As String = "") As Byte()
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
LineIndex | Integer | erforderlich | Zero-based index of the line item. |
URIID | String | erforderlich | URI ID / external location of the document (output) |
FileName | String | erforderlich | File name of the attachment (output) |
MimeType | String | erforderlich | MIME type of the attachment (output) |
IssuerAssignedID | String | erforderlich | Document reference (output) |
LineID | String | optional (Standard: "") | Referenced line ID (output) |
TypeCode | String | optional (Standard: "") | Document type code (output) |
ReferenceTypeCode | String | optional (Standard: "") | Reference type code (output) |
Document_Date | String | optional (Standard: "") | Issue date of the document (output) |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim LineIndex As Integer = 0
Dim URIID As String = ""
Dim FileName As String = ""
Dim MimeType As String = ""
Dim IssuerAssignedID As String = ""
Dim ergebnis = alo.GetLineItemReferencedDocument(LineIndex, URIID, FileName, MimeType, IssuerAssignedID)
Aufruf (C#)
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
int lineIndex = 0;
string uriid = "";
string fileName = "";
string mimeType = "";
string issuerAssignedID = "";
string lineID = "";
string typeCode = "";
string referenceTypeCode = "";
string document_Date = "";
var ergebnis = alo.GetLineItemReferencedDocument(lineIndex, ref uriid, ref fileName, ref mimeType, ref issuerAssignedID, ref lineID, ref typeCode, ref referenceTypeCode, ref document_Date);
Artikel mit GetLineItemReferencedDocument
COM-Schnittstelle
GetLineItemReferencedDocument ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 212 von 343) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.