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

NameTypPflichtBeschreibung
LineIndexIntegererforderlichZero-based index of the line item.
URIIDStringerforderlichURI ID / external location of the document (output)
FileNameStringerforderlichFile name of the attachment (output)
MimeTypeStringerforderlichMIME type of the attachment (output)
IssuerAssignedIDStringerforderlichDocument reference (output)
LineIDStringoptional (Standard: "")Referenced line ID (output)
TypeCodeStringoptional (Standard: "")Document type code (output)
ReferenceTypeCodeStringoptional (Standard: "")Reference type code (output)
Document_DateStringoptional (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.

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM. In C# werden ByRef-Parameter mit ref übergeben, VB-Eigenschaften mit Parametern heißen get_…/set_…, optionale Parameter können entfallen.